Class: Archangel::User

Inherits:
ApplicationRecord show all
Includes:
DeviseInvitable::Inviter
Defined in:
app/models/archangel/user.rb

Overview

User model

Instance Method Summary collapse

Instance Method Details

#send_reset_password_instructionsObject

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_paramString

Overwrite resource id to ‘username`

Returns:

  • (String)

    the aliased resource param



55
56
57
# File 'app/models/archangel/user.rb', line 55

def to_param
  username
end