Class Audited::Adapters::ActiveRecord::Audit
In: lib/audited/adapters/active_record/audit.rb
Parent: ::ActiveRecord::Base

Audit saves the changes to ActiveRecord models. It has the following attributes:

  • auditable: the ActiveRecord model that was changed
  • user: the user that performed the change; a string or an ActiveRecord model
  • action: one of create, update, or delete
  • audited_changes: a serialized hash of all the changes
  • comment: a comment set with the audit
  • created_at: Time that the change was performed

Methods

Included Modules

Audited::Audit

External Aliases

user= -> user_as_model=
user -> user_as_model

Public Instance methods

Return all audits older than the current one.

user()

Alias for user_as_string

user=(user)

Alias for user_as_string=

Allows user to be set to either a string or an ActiveRecord object @private

[Validate]