Fix #148 - Devise mailer fixed, test spec added so it won't slip past again

This commit is contained in:
Eugen Rochko 2016-11-17 12:29:11 +01:00
parent b2e504616a
commit 7ac574d9a9
3 changed files with 36 additions and 3 deletions

View file

@ -4,7 +4,7 @@ class UserMailer < Devise::Mailer
default from: ENV.fetch('SMTP_FROM_ADDRESS') { 'notifications@localhost' }
layout 'mailer'
def confirmation_instructions(user, token)
def confirmation_instructions(user, token, _opts = {})
@resource = user
@token = token
@ -13,7 +13,7 @@ class UserMailer < Devise::Mailer
end
end
def reset_password_instructions(user, token)
def reset_password_instructions(user, token, _opts = {})
@resource = user
@token = token
@ -22,7 +22,7 @@ class UserMailer < Devise::Mailer
end
end
def password_change(user)
def password_change(user, _opts = {})
@resource = user
I18n.with_locale(@resource.locale || I18n.default_locale) do