Module: Audited::Auditor::AuditedInstanceMethods
- Defined in:
- lib/audited_async.rb
Instance Method Summary collapse
Instance Method Details
#audited_async_enabled? ⇒ Boolean
39 40 41 |
# File 'lib/audited_async.rb', line 39 def audited_async_enabled? self.class.audited_async_enabled? end |
#perform_async_audit(method) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/audited_async.rb', line 63 def perform_async_audit(method) AuditedAsync.config.job.perform_later class_name: self.class.name, record_id: send(self.class.primary_key.to_sym), action: method, audited_changes: audited_attributes.to_json, comment: audit_comment end |