use different class variable to determine currently logged in user

master
Coleman 2008-10-17 01:01:57 -05:00
parent 0238d49415
commit 33d4a7f0fc
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class Application < Merb::Controller
def current_user
if session[:user_id]
(@user ||= User.find(session[:user_id]))
(@_user ||= User.find(session[:user_id]))
else
(cookies[:session_id] ||= session[:session_id])
end