2016-11-15 15:56:29 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-19 18:20:07 +00:00
|
|
|
class ApplicationMailer < ActionMailer::Base
|
|
|
|
layout 'mailer'
|
2018-01-16 02:29:11 +00:00
|
|
|
|
2018-01-28 23:22:20 +00:00
|
|
|
helper :application
|
2017-04-17 22:16:32 +00:00
|
|
|
helper :instance
|
2022-03-26 01:53:34 +00:00
|
|
|
helper :formatting
|
2017-06-26 22:04:00 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
2023-02-20 02:18:08 +00:00
|
|
|
def locale_for_account(account, &block)
|
|
|
|
I18n.with_locale(account.user_locale || I18n.default_locale, &block)
|
2017-06-26 22:04:00 +00:00
|
|
|
end
|
2016-03-19 18:20:07 +00:00
|
|
|
end
|