Module: Cms::Behaviors::Userstamping::InstanceMethods

Defined in:
lib/cms/behaviors/userstamping.rb

Instance Method Summary collapse

Instance Method Details

#set_userstampsObject



28
29
30
31
32
33
# File 'lib/cms/behaviors/userstamping.rb', line 28

def set_userstamps
  if new_record?
    self.created_by = User.current 
  end
  self.updated_by = User.current
end