Sha256: 924a9554b28e9681b3c1e0b98187fa5511709333b106aee55cf806776e08629e

Contents?: true

Size: 365 Bytes

Versions: 17

Compression:

Stored size: 365 Bytes

Contents

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'

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
notifiably_audited-activerecord-2.1.0 lib/audited/adapters/active_record.rb
notifiably_audited-activerecord-2.0.0 lib/audited/adapters/active_record.rb
audited-activerecord-4.2.2 lib/audited/adapters/active_record.rb
audited-activerecord-4.2.1 lib/audited/adapters/active_record.rb
audited-activerecord-4.2.0 lib/audited/adapters/active_record.rb
audited-activerecord-4.0.0 lib/audited/adapters/active_record.rb
audited-activerecord-4.0.0.rc1 lib/audited/adapters/active_record.rb
notifiably_audited-activerecord-0.0.7 lib/audited/adapters/active_record.rb
notifiably_audited-0.0.6 lib/audited/adapters/active_record.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0/lib/audited/adapters/active_record.rb
audited-activerecord-3.0.0 lib/audited/adapters/active_record.rb
audited-activerecord-3.0.0.rc2 lib/audited/adapters/active_record.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/audited/adapters/active_record.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/audited/adapters/active_record.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/audited/adapters/active_record.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/audited/adapters/active_record.rb
audited-activerecord-3.0.0.rc1 lib/audited/adapters/active_record.rb