Module: AuditModel::Models::Helpers::InstanceMethods
- Defined in:
- lib/audit_model/models/helpers.rb
Instance Method Summary collapse
Instance Method Details
#audit_on_create ⇒ Object
48 49 50 |
# File 'lib/audit_model/models/helpers.rb', line 48 def audit_on_create "#{self.class}Audit".constantize.audit(self, :create) end |
#audit_on_destroy ⇒ Object
56 57 58 |
# File 'lib/audit_model/models/helpers.rb', line 56 def audit_on_destroy "#{self.class}Audit".constantize.audit(self, :destroy) end |
#audit_on_update ⇒ Object
52 53 54 |
# File 'lib/audit_model/models/helpers.rb', line 52 def audit_on_update "#{self.class}Audit".constantize.audit(self, :update) end |