logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

application_mailer.rb (299B)


  1. # frozen_string_literal: true
  2. class ApplicationMailer < ActionMailer::Base
  3. layout 'mailer'
  4. helper :application
  5. helper :instance
  6. helper :mailer
  7. protected
  8. def locale_for_account(account)
  9. I18n.with_locale(account.user_locale || I18n.default_locale) do
  10. yield
  11. end
  12. end
  13. end