This commit is contained in:
parent
a91d968cab
commit
42b8220632
7 changed files with 46 additions and 14 deletions
|
@ -4,4 +4,12 @@ class ApplicationMailer < ActionMailer::Base
|
|||
default from: ENV.fetch('SMTP_FROM_ADDRESS') { 'notifications@localhost' }
|
||||
layout 'mailer'
|
||||
helper :instance
|
||||
|
||||
protected
|
||||
|
||||
def locale_for_account(account)
|
||||
I18n.with_locale(account.user_locale || I18n.default_locale) do
|
||||
yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue