Sha256: 4d535f4907b3429a09c6045b503b7df4511ceb7f87e657f7850f60ea4072c32b

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

require 'mongo_mapper'
require 'audited/auditor'
require 'audited/adapters/mongo_mapper/audited_changes'
require 'audited/adapters/mongo_mapper/audit'

module Audited::Auditor::ClassMethods
  def default_ignored_attributes
    ['id', '_id']
  end

  def table_name
    name.tableize
  end
end

::MongoMapper::Document.plugin Audited::Auditor

Audited.audit_class = Audited::Adapters::MongoMapper::Audit

require 'audited/sweeper'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
audited-mongo_mapper-4.2.2 lib/audited/adapters/mongo_mapper.rb