sickill/ascii.io — comment on commit bf6b74289bb383f766b793368afb0df5adb731a7
File: app/controllers/application_controller.rb line 17
By sickill:

Assigning (and clearing) @current_user is missing here. Following code would always return first user:

self.current_user = user1
self.current_user = user2
current_user # => user1