Sha256: 834687f46c9c6ae0159f8f03cc630ab4443ebf2ecd5ecf15d2452093d274dd58

Contents?: true

Size: 1.36 KB

Versions: 15

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

class User
  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
  field :favorite_color,   type: String
  field :operating_thetan, type: Integer

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

  ## Recoverable
  field :reset_password_token,        type: String
  field :reset_password_sent_at,      type: Time
  field :reset_password_redirect_url, type: String
  field :allow_password_change,       type: Boolean, default: false

  ## Rememberable
  field :remember_created_at, type: Time

  ## Confirmable
  field :confirmation_token,   type: String
  field :confirmed_at,         type: Time
  field :confirmation_sent_at, type: Time
  field :unconfirmed_email,    type: String # Only if using reconfirmable

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

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

  include DeviseTokenAuth::Concerns::User
  include FavoriteColor
end

Version data entries

15 entries across 15 versions & 4 rubygems

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