Sha256: 2f46adf62f558cfb0f92a4280a04876c8c2eb2ea6e3b02fcdd1245235a376350

Contents?: true

Size: 339 Bytes

Versions: 11

Compression:

Stored size: 339 Bytes

Contents

module Trackable
  extend ActiveSupport::Concern
  include Mongoid::History::Trackable
  include Mongoid::Userstamp
  included do
    track_history({
      track_create: true,
      track_destroy: true,
      track_update: true,
      modifier_field: :updater,
      except: ["created_at", "updated_at", "c_at", "u_at"],
    })
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mongoid-audit-1.4.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.3.1 lib/mongoid-audit/trackable.rb
mongoid-audit-1.3.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.2.2 lib/mongoid-audit/trackable.rb
mongoid-audit-1.2.1 lib/mongoid-audit/trackable.rb
mongoid-audit-1.2.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.1.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.0.2 lib/mongoid-audit/trackable.rb
mongoid-audit-1.0.1 lib/mongoid-audit/trackable.rb
mongoid-audit-1.0.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.0.0.beta.1 lib/mongoid-audit/trackable.rb