Sha256: 4da0ea48953efd71133978122605e0f09ac11306df05c78234c06c756390f441

Contents?: true

Size: 846 Bytes

Versions: 18

Compression:

Stored size: 846 Bytes

Contents

# frozen_string_literal: true

class OnlyEmailUser
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Locker

  field :locker_locked_at, type: Time
  field :locker_locked_until, type: Time

  locker locked_at_field: :locker_locked_at,
         locked_until_field: :locker_locked_until

  ## User Info
  field :name,      type: String
  field :nickname,  type: String
  field :image,     type: String

  ## Database authenticatable
  field :email,              type: String, default: ''
  field :encrypted_password, type: String, default: ''

  ## Required
  field :provider, type: String
  field :uid,      type: String, default: ''

  ## Tokens
  field :tokens, type: Hash, default: {}

  # Include default devise modules.
  devise :database_authenticatable, :registerable
  include DeviseTokenAuth::Concerns::User
end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
devise_token_auth-1.2.5 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.2.4 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.2.2 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.2.1 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.2.0 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.5 test/dummy/app/mongoid/only_email_user.rb
sidecar_token_auth-1.0.1 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.4 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth_multitenancy-1.1.3.2 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth_multitenancy-1.1.3.1 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth_multitenancy-1.1.3.alpha1 test/dummy/app/mongoid/only_email_user.rb
devise-tokens-1.0.4 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.3 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.2 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.1 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth-1.1.0 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth_fork_dfabarbosa-1.0.0 test/dummy/app/mongoid/only_email_user.rb
devise_token_auth_skycocker_fork-1.0.0 test/dummy/app/mongoid/only_email_user.rb