Class: Authtown::Current

Inherits:
Object
  • Object
show all
Defined in:
lib/authtown.rb

Class Method Summary collapse

Class Method Details

.thread_stateObject



42
# File 'lib/authtown.rb', line 42

def thread_state = Thread.current.authtown_state ||= {}

.userObject



48
# File 'lib/authtown.rb', line 48

def user = thread_state[:user]

.user=(new_user) ⇒ Object



44
45
46
# File 'lib/authtown.rb', line 44

def user=(new_user)
  thread_state[:user] = new_user
end