Class: UserStamp::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/user_stamp/user.rb

Class Method Summary collapse

Class Method Details

.currentObject



36
37
38
# File 'lib/user_stamp/user.rb', line 36

def self.current
  Thread.current[:current_user]
end

.current=(user) ⇒ Object

attr_accessible :title, :body



31
32
33
# File 'lib/user_stamp/user.rb', line 31

def self.current=(user)
  Thread.current[:current_user] = user
end