Module: Grant::User
- Defined in:
- lib/grant/user.rb
Class Method Summary collapse
Class Method Details
.current_user ⇒ Object
4 5 6 |
# File 'lib/grant/user.rb', line 4 def current_user Thread.current[:grant_user] end |
.current_user=(user) ⇒ Object
8 9 10 |
# File 'lib/grant/user.rb', line 8 def current_user=(user) Thread.current[:grant_user] = user end |