2013-10-03 10:38:26 -04:00
|
|
|
if defined?(ActionMailer)
|
|
|
|
class Devise::Mailer < Devise.parent_mailer.constantize
|
|
|
|
include Devise::Mailers::Helpers
|
2009-11-02 20:14:27 -05:00
|
|
|
|
2013-10-03 10:38:26 -04:00
|
|
|
def confirmation_instructions(record, token, opts={})
|
|
|
|
@token = token
|
|
|
|
devise_mail(record, :confirmation_instructions, opts)
|
|
|
|
end
|
2009-10-07 21:08:24 -04:00
|
|
|
|
2013-10-03 10:38:26 -04:00
|
|
|
def reset_password_instructions(record, token, opts={})
|
|
|
|
@token = token
|
|
|
|
devise_mail(record, :reset_password_instructions, opts)
|
|
|
|
end
|
2009-10-08 10:40:53 -04:00
|
|
|
|
2013-10-03 10:38:26 -04:00
|
|
|
def unlock_instructions(record, token, opts={})
|
|
|
|
@token = token
|
|
|
|
devise_mail(record, :unlock_instructions, opts)
|
|
|
|
end
|
2015-06-19 15:22:37 -04:00
|
|
|
|
|
|
|
def password_change(record, opts={})
|
|
|
|
devise_mail(record, :unlock_instructions)
|
|
|
|
end
|
2010-06-12 14:29:43 -04:00
|
|
|
end
|
2009-10-07 21:08:24 -04:00
|
|
|
end
|