corrected sample code to clear @_current_user class variable also

This commit is contained in:
Rajinder Yadav 2010-11-14 05:12:01 -05:00
parent 7e1f6688e9
commit 23f71c431d
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,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