lib/audited/auditor.rb in audited-4.4.1 vs lib/audited/auditor.rb in audited-4.5.0

- old
+ new

@@ -127,11 +127,11 @@ revision_with Audited.audit_class.reconstruct_attributes(audits) unless audits.empty? end # List of attributes that are audited. def audited_attributes - attributes.except(*non_audited_columns) + attributes.except(*non_audited_columns.map(&:to_s)) end def non_audited_columns self.class.non_audited_columns end @@ -249,10 +249,10 @@ end # InstanceMethods module AuditedClassMethods # Returns an array of columns that are audited. See non_audited_columns def audited_columns - columns.select {|c| !non_audited_columns.include?(c.name) } + columns.reject { |c| non_audited_columns.map(&:to_s).include?(c.name) } end def non_audited_columns @non_audited_columns ||= begin options = audited_options