Class: Ecom2::User
- Inherits:
-
Object
- Object
- Ecom2::User
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/ecom2/user.rb
Instance Method Summary collapse
-
#email ⇒ Object
Database authenticatable.
-
#purchases ⇒ Object
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.
-
#remember_created_at ⇒ Object
Rememberable.
-
#reset_password_token ⇒ Object
Recoverable.
-
#sign_in_count ⇒ Object
Trackable.
Instance Method Details
#email ⇒ Object
Database authenticatable
11 |
# File 'app/models/ecom2/user.rb', line 11 field :email, type: String, default: "" |
#purchases ⇒ Object
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
38 |
# File 'app/models/ecom2/user.rb', line 38 has_many :purchases, :dependent => :destroy |
#remember_created_at ⇒ Object
Rememberable
19 |
# File 'app/models/ecom2/user.rb', line 19 field :remember_created_at, type: Time |
#reset_password_token ⇒ Object
Recoverable
15 |
# File 'app/models/ecom2/user.rb', line 15 field :reset_password_token, type: String |
#sign_in_count ⇒ Object
Trackable
22 |
# File 'app/models/ecom2/user.rb', line 22 field :sign_in_count, type: Integer, default: 0 |