2016-11-15 09:56:29 -06:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-19 13:20:07 -05:00
|
|
|
class ApplicationMailer < ActionMailer::Base
|
|
|
|
layout 'mailer'
|
2017-04-17 17:16:32 -05:00
|
|
|
helper :instance
|
2017-06-26 17:04:00 -05:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def locale_for_account(account)
|
|
|
|
I18n.with_locale(account.user_locale || I18n.default_locale) do
|
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|
2016-03-19 13:20:07 -05:00
|
|
|
end
|