Module: CollectiveIdea::Acts::Audited

Defined in:
lib/acts_as_audited_rails3/base.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 CollectiveIdea::Acts::Audited::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]

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



39
40
41
# File 'lib/acts_as_audited_rails3/base.rb', line 39

def self.included(base) # :nodoc:
  base.extend ClassMethods
end