Class: Authtown::Current

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

Class Method Summary collapse

Class Method Details

.thread_stateObject



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

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

.userObject



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

def user = thread_state[:user]

.user=(new_user) ⇒ Object



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

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