Sha256: 291376f79827088e3c1d6534f3da651ad107c3a4ad3f69c026cd9518a8313c60

Contents?: true

Size: 408 Bytes

Versions: 7

Compression:

Stored size: 408 Bytes

Contents

module DatabaseAuthenticatableFields
  extend ::ActiveSupport::Concern

  included do
    include Mongoid::Document

    ## Database authenticatable
    field :username, type: String
    field :email, type: String, default: ""
    #validates_presence_of :email

    field :encrypted_password, type: String, default: ""
    validates_presence_of :encrypted_password

    include Mongoid::Timestamps
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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