Class: Gemstonemerchant::User

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/gemstonemerchant/user.rb

Instance Method Summary collapse

Instance Method Details

#emailObject

Database authenticatable



12
# File 'app/models/gemstonemerchant/user.rb', line 12

field :email,              type: String, default: ""

#purchasesObject

Lockable field :failed_attempts, type: Integer, default: 0 # Only if lock strategy is :failed_attempts field :unlock_token, type: String # Only if unlock strategy is :email or :both field :locked_at, type: Time



40
# File 'app/models/gemstonemerchant/user.rb', line 40

has_many :purchases, :dependent => :destroy

#remember_created_atObject

Rememberable



20
# File 'app/models/gemstonemerchant/user.rb', line 20

field :remember_created_at, type: Time

#reset_password_tokenObject

Recoverable



16
# File 'app/models/gemstonemerchant/user.rb', line 16

field :reset_password_token,   type: String

#sign_in_countObject

Trackable



23
# File 'app/models/gemstonemerchant/user.rb', line 23

field :sign_in_count,      type: Integer, default: 0