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

Methods

External Aliases

user= -> user_as_model=
user -> user_as_model

Public Class methods

All audits made during the block called will be recorded as made by user. This method is hopefully threadsafe, making it ideal for background operations that require audit information.

Returns the list of classes that are being audited

Public Instance methods

Return all audits older than the current one.

Returns a hash of the changed attributes with the new values

Returns a hash of the changed attributes with the old values

Return an instance of what the object looked like at this revision. If the object has been destroyed, this will be a new record.

Allows user to undo changes

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]