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