Method: StandardModel#capture_user_info
- Defined in:
- lib/app/models/concerns/standard_model.rb
#capture_user_info ⇒ Object
320 321 322 323 324 325 326 327 328 329 330 |
# File 'lib/app/models/concerns/standard_model.rb', line 320 def capture_user_info auto_strip_attributes if last_modified_by.present? self.last_modified_by_name = last_modified_by.name self.last_modified_by_email = last_modified_by.email end return unless created_by.present? && new_record? self.created_by_name = created_by.name self.created_by_email = created_by.email end |