Class: UserStamp::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- UserStamp::User
- Defined in:
- lib/user_stamp/user.rb
Class Method Summary collapse
- .current ⇒ Object
-
.current=(user) ⇒ Object
attr_accessible :title, :body.
Class Method Details
permalink .current ⇒ Object
[View source]
36 37 38 |
# File 'lib/user_stamp/user.rb', line 36 def self.current Thread.current[:current_user] end |
permalink .current=(user) ⇒ Object
attr_accessible :title, :body
32 33 34 |
# File 'lib/user_stamp/user.rb', line 32 def self.current=(user) Thread.current[:current_user] = user end |