Created
October 3, 2014 18:57
-
-
Save cktricky/b7654d39c001afbfaff1 to your computer and use it in GitHub Desktop.
devise mailer
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
if defined?(ActionMailer) | |
class Devise::Mailer < Devise.parent_mailer.constantize | |
include Devise::Mailers::Helpers | |
def confirmation_instructions(record, token, opts={}) | |
@token = token | |
devise_mail(record, :confirmation_instructions, opts) | |
end | |
def reset_password_instructions(record, token, opts={}) | |
@token = token | |
devise_mail(record, :reset_password_instructions, opts) | |
end | |
def unlock_instructions(record, token, opts={}) | |
@token = token | |
devise_mail(record, :unlock_instructions, opts) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment