Module: ActsAsAudited::Auditor

Defined in:
lib/acts_as_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
  acts_as_audited
end

To store an audit comment set model.audit_comment to your comment before a create, update or destroy operation.

See ActsAsAudited::Auditor::ClassMethods#acts_as_audited for configuration options

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, SingletonMethods

Constant Summary collapse

CALLBACKS =

:nodoc:

[:audit_create, :audit_update, :audit_destroy]