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