Class: TokenAuthenticateMeMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- TokenAuthenticateMeMailer
- Defined in:
- app/mailers/token_authenticate_me_mailer.rb
Instance Method Summary collapse
- #invalid_user_reset_password_email(root_url, email) ⇒ Object
- #invite_user_email(root_url, invite) ⇒ Object
- #valid_user_reset_password_email(root_url, user) ⇒ Object
Instance Method Details
#invalid_user_reset_password_email(root_url, email) ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/mailers/token_authenticate_me_mailer.rb', line 10 def invalid_user_reset_password_email(root_url, email) @root_url = root_url @email = email @signup_path = TokenAuthenticateMe.configuration.signup_path mail(to: email, subject: 'Password Reset Error') end |
#invite_user_email(root_url, invite) ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/mailers/token_authenticate_me_mailer.rb', line 18 def invite_user_email(root_url, invite) @root_url = root_url @email = invite.email @invite_path = invite_path(invite) mail(to: email, subject: 'Invitation To Join') end |
#valid_user_reset_password_email(root_url, user) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/mailers/token_authenticate_me_mailer.rb', line 2 def valid_user_reset_password_email(root_url, user) @root_url = root_url @user = user @token_reset_path = token_reset_path(@user) mail(to: user.email, subject: 'Password Reset') end |