Class: DeviseMailer
- Inherits:
-
Devise::Mailer
- Object
- Devise::Mailer
- DeviseMailer
- Defined in:
- app/mailers/devise_mailer.rb
Instance Method Summary collapse
-
#confirmation_instructions(record, token, opts = {}) ⇒ Object
Override the base method in order to pass in @to.
-
#reset_password_instructions(record, token, opts = {}) ⇒ Object
Override the base method in order to pass in @to.
Instance Method Details
#confirmation_instructions(record, token, opts = {}) ⇒ Object
Override the base method in order to pass in @to.
13 14 15 16 17 18 |
# File 'app/mailers/devise_mailer.rb', line 13 def confirmation_instructions(record, token, opts = {}) @to = record @token = token devise_mail(record, :confirmation_instructions, opts) end |
#reset_password_instructions(record, token, opts = {}) ⇒ Object
Override the base method in order to pass in @to.
21 22 23 24 25 26 |
# File 'app/mailers/devise_mailer.rb', line 21 def reset_password_instructions(record, token, opts = {}) @to = record @token = token devise_mail(record, :reset_password_instructions, opts) end |