Sha256: fe696722de34b9ba405fcb8adbf879a377013c3c32ff4813121d589c2b40f56e

Contents?: true

Size: 844 Bytes

Versions: 14

Compression:

Stored size: 844 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 DeviseJwtAuth::Concerns::User
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
devise_jwt_auth722-0.1.7 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth7-0.1.7 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.4.1 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.4.0 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.3.0 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.2.0 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.7 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.6 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.5 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.4 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.3 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.2 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.1 test/dummy/app/mongoid/only_email_user.rb
devise_jwt_auth-0.1.0 test/dummy/app/mongoid/only_email_user.rb