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