Class: Hicube::User
- Inherits:
-
Object
- Object
- Hicube::User
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/hicube/user.rb
Instance Method Summary collapse
-
#admin? ⇒ Boolean
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.
-
#email ⇒ Object
Database authenticatable.
-
#remember_created_at ⇒ Object
Rememberable.
-
#reset_password_token ⇒ Object
Recoverable.
-
#sign_in_count ⇒ Object
Trackable.
Instance Method Details
#admin? ⇒ Boolean
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
50 51 52 |
# File 'app/models/hicube/user.rb', line 50 def admin? self.admin end |
#email ⇒ Object
Database authenticatable
21 |
# File 'app/models/hicube/user.rb', line 21 field :email, type: String, default: "" |
#remember_created_at ⇒ Object
Rememberable
30 |
# File 'app/models/hicube/user.rb', line 30 field :remember_created_at, type: Time |
#reset_password_token ⇒ Object
Recoverable
26 |
# File 'app/models/hicube/user.rb', line 26 field :reset_password_token, type: String |
#sign_in_count ⇒ Object
Trackable
33 |
# File 'app/models/hicube/user.rb', line 33 field :sign_in_count, type: Integer, default: 0 |