Module: KuFu::InstanceMethods
- Defined in:
- lib/ku_fu/base.rb
Instance Method Summary collapse
Instance Method Details
#ku_fu_register ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/ku_fu/base.rb', line 19 def ku_fu_register if new_record? write_attribute(:creator_id, ku_fu_user_id) if self.respond_to?(:creator_id) else write_attribute(:updater_id, ku_fu_user_id) if self.respond_to?(:updater_id) end end |
#ku_fu_register_deleter ⇒ Object
27 28 29 |
# File 'lib/ku_fu/base.rb', line 27 def ku_fu_register_deleter write_attribute(:deleter_id, ku_fu_user_id) if self.respond_to?(:deleter_id) end |