Method: Auditable::Auditing::ClassMethods#audited_attributes

Defined in:
lib/auditable/auditing.rb

#audited_attributesObject

Get the list of methods to track over record saves, including those inherited from parent



9
10
11
12
13
14
15
16
# File 'lib/auditable/auditing.rb', line 9

def audited_attributes
  attrs =  @audited_attributes || []
  # handle STI case: include parent's audited_attributes
  if superclass != ActiveRecord::Base and superclass.respond_to?(:audited_attributes)
    attrs.push(*superclass.audited_attributes)
  end
  attrs
end