Sha256: c9e50a684b40e8ea8a6b9c1e040547366640018fe0a8cf7e050a56eb5f3da147

Contents?: true

Size: 348 Bytes

Versions: 7

Compression:

Stored size: 348 Bytes

Contents

module TrackableFields
  extend ::ActiveSupport::Concern

  included do
    include Mongoid::Document

    ## Trackable
    field :sign_in_count, type: Integer, default: 0
    field :current_sign_in_at, type: Time
    field :last_sign_in_at, type: Time
    field :current_sign_in_ip, type: String
    field :last_sign_in_ip, type: String
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise-security-0.16.0 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.15.0 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.14.3 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.14.2 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.14.1 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.14.0 test/dummy/app/models/mongoid/trackable_fields.rb
devise-security-0.14.0.rc1 test/dummy/app/models/mongoid/trackable_fields.rb