app/models/record.rb
# Make some ammendments to the acts_as_audited assumptions
Make some ammendments to the acts_as_audited assumptions
Make some ammendments to the acts_as_audited assumptions
def configure_audits
      record_types.map(&:constantize).each do |klass|
        defaults = [klass.non_audited_columns ].flatten
        defaults.delete( klass.inheritance_column )
        defaults.push( :change_date )
        klass.write_inheritable_attribute :non_audited_columns, defaults.flatten.map(&:to_s)
      end
    end
def configure_audits record_types . map ( & :constantize ) . each do | klass | defaults = [ klass . non_audited_columns ] . flatten defaults . delete ( klass . inheritance_column ) defaults . push ( :change_date ) klass . write_inheritable_attribute :non_audited_columns , defaults . flatten . map ( & :to_s ) end end
Make some ammendments to the acts_as_audited assumptions
Make some ammendments to the acts_as_audited assumptions