Sha256: 898cc2e89a1acf890c6b559d431881c7286e3d477b4ce6b76c43b28b89823773

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 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,
      modifier_field_optional: true,
      except: ["created_at", "updated_at", "c_at", "u_at"],
    })
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-audit-1.6.0 lib/mongoid-audit/trackable.rb
mongoid-audit-1.5.0 lib/mongoid-audit/trackable.rb