Module: CanTango::Users::Masquerade::SessionActiveUser

Defined in:
lib/cantango/users/masquerade/session_active_user.rb

Instance Method Summary collapse

Instance Method Details

#active_userObject



6
7
8
# File 'lib/cantango/users/masquerade/session_active_user.rb', line 6

def active_user
  session[:active_user]
end

#active_user=(user) ⇒ Object



10
11
12
# File 'lib/cantango/users/masquerade/session_active_user.rb', line 10

def active_user= user
  session[:active_user] = user
end