Class: Negroni::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Negroni::Mailer
- Includes:
- Negroni::Mailers::Helpers
- Defined in:
- app/mailers/negroni/mailer.rb,
app/mailers/negroni/mailer.rb
Overview
The base mailer for all emails
Instance Method Summary collapse
-
#password_change(record, options = {}) ⇒ Object
Sends ‘record` a notification of password changes.
-
#reset_password_instructions(record, token, options = {}) ⇒ Object
Sends ‘record` instructions to reset their password using `token`.
-
#unlock_instructions(record, token, options = {}) ⇒ Object
Sends ‘record` instructions to unlock their account using `token`.
Instance Method Details
#password_change(record, options = {}) ⇒ Object
Sends ‘record` a notification of password changes
40 41 42 |
# File 'app/mailers/negroni/mailer.rb', line 40 def password_change(record, = {}) negroni_mail(record, :password_change, ) end |
#reset_password_instructions(record, token, options = {}) ⇒ Object
Sends ‘record` instructions to reset their password using `token`
19 20 21 22 |
# File 'app/mailers/negroni/mailer.rb', line 19 def reset_password_instructions(record, token, = {}) @token = token negroni_mail(record, :reset_password_instructions, ) end |
#unlock_instructions(record, token, options = {}) ⇒ Object
Sends ‘record` instructions to unlock their account using `token`
30 31 32 33 |
# File 'app/mailers/negroni/mailer.rb', line 30 def unlock_instructions(record, token, = {}) @token = token negroni_mail(record, :unlock_instructions, ) end |