Class: Authtown::Current
- Inherits:
-
Object
- Object
- Authtown::Current
- Defined in:
- lib/authtown.rb
Class Method Summary collapse
Class Method Details
.thread_state ⇒ Object
44 |
# File 'lib/authtown.rb', line 44 def thread_state = Thread.current.authtown_state ||= {} |
.user ⇒ Object
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 |