lib/audited/auditor.rb in audited-4.2.1 vs lib/audited/auditor.rb in audited-4.2.2

- old
+ new

@@ -268,14 +268,14 @@ def audit_as( user, &block ) Audited.audit_class.as_user( user, &block ) end def auditing_enabled - Audited.store.fetch("#{name.tableize}_auditing_enabled", true) + Audited.store.fetch("#{table_name}_auditing_enabled", true) end def auditing_enabled= val - Audited.store["#{name.tableize}_auditing_enabled"] = val + Audited.store["#{table_name}_auditing_enabled"] = val end end end end