Class: Archangel::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Archangel::User
- Includes:
- DeviseInvitable::Inviter
- Defined in:
- app/models/archangel/user.rb
Overview
User model
Instance Method Summary collapse
-
#send_reset_password_instructions ⇒ Object
Only send the password reset email if the invitation has been accepted.
-
#to_param ⇒ String
Overwrite resource id to ‘username`.
Instance Method Details
#send_reset_password_instructions ⇒ Object
Only send the password reset email if the invitation has been accepted
46 47 48 |
# File 'app/models/archangel/user.rb', line 46 def send_reset_password_instructions super if invitation_token.blank? end |
#to_param ⇒ String
Overwrite resource id to ‘username`
55 56 57 |
# File 'app/models/archangel/user.rb', line 55 def to_param username end |