Skip to content

Commit

Permalink
corrected sample code to clear @_current_user class variable also
Browse files Browse the repository at this point in the history
  • Loading branch information
rajinder-yadav authored and fxn committed Nov 15, 2010
1 parent 7487767 commit c41d981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/action_controller_overview.textile
Expand Up @@ -242,7 +242,7 @@ class LoginsController < ApplicationController
# "Delete" a login, aka "log the user out"
def destroy
# Remove the user id from the session
session[:current_user_id] = nil
@_current_user = session[:current_user_id] = nil
redirect_to root_url
end
end
Expand Down

0 comments on commit c41d981

Please sign in to comment.