about summary refs log blame commit diff
path: root/app/mailers/application_mailer.rb
blob: 73b623576c37d66fd97df882b9d13efa5baac83d (plain) (tree)
1
2
3
4
5
6
7
8
                             
                                            
                 
 
                     
                  
                    

           
                                                                        
     
   
# frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
  layout 'mailer'

  helper :application
  helper :instance
  helper :formatting

  protected

  def locale_for_account(account, &block)
    I18n.with_locale(account.user_locale || I18n.default_locale, &block)
  end
end