Module: Audited::Auditor
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/audited/auditor.rb
Overview
Specify this act if you want changes to your model to be saved in an audit table. This assumes there is an audits table ready.
class User < ActiveRecord::Base
audited
end
To store an audit comment set model.audit_comment to your comment before a create, update or destroy operation.
See Audited::Auditor::ClassMethods#audited
for configuration options
Defined Under Namespace
Modules: AuditedClassMethods, AuditedInstanceMethods, ClassMethods
Constant Summary collapse
- CALLBACKS =
[:audit_create, :audit_update, :audit_destroy]