Module: AuditLoggable::Extension
- Defined in:
- lib/audit_loggable/extension.rb
Defined Under Namespace
Classes: Callbacks
Instance Method Summary collapse
Instance Method Details
#log_audit(except: [], redacted: []) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/audit_loggable/extension.rb', line 5 def log_audit(except: [], redacted: []) self.class_eval do attr_internal :audit_loggable_audit_record_set callbacks = Callbacks.new(except: except, redacted: redacted) after_create callbacks after_update callbacks after_destroy callbacks after_rollback callbacks after_commit callbacks end end |