require 'active_record' require 'audited/auditor' require 'audited/adapters/active_record/audit' module Audited::Auditor::ClassMethods def default_ignored_attributes [self.primary_key, inheritance_column] end end ::ActiveRecord::Base.send :include, Audited::Auditor Audited.audit_class = Audited::Adapters::ActiveRecord::Audit require 'audited/sweeper'