cefa526c6d
* Refactor formatter * Move custom emoji pre-rendering logic to view helpers * Move more methods out of Formatter * Fix code style issues * Remove Formatter * Add inline poll options to RSS feeds * Remove unused helper method * Fix code style issues * Various fixes and improvements * Fix test
17 lines
303 B
Ruby
17 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ApplicationMailer < ActionMailer::Base
|
|
layout 'mailer'
|
|
|
|
helper :application
|
|
helper :instance
|
|
helper :formatting
|
|
|
|
protected
|
|
|
|
def locale_for_account(account)
|
|
I18n.with_locale(account.user_locale || I18n.default_locale) do
|
|
yield
|
|
end
|
|
end
|
|
end
|