This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomDeviseMailer < Devise::Mailer | |
helper :application # gives access to all helpers defined within `application_helper`. | |
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url` | |
default template_path: 'devise/mailer' # to make sure that your mailer uses the devise views | |
def reset_password_instructions(record, token, opts={}) | |
opts[:subject] = I18n.t(:'devise.mailer.reset_password_instructions.subject', app_name: ENV['APP_NAME']) | |
super | |
end | |
end |