Autofix Rubocop Style/ExplicitBlockArgument (#23704)
This commit is contained in:
		@@ -9,9 +9,7 @@ class ApplicationMailer < ActionMailer::Base
 | 
			
		||||
 | 
			
		||||
  protected
 | 
			
		||||
 | 
			
		||||
  def locale_for_account(account)
 | 
			
		||||
    I18n.with_locale(account.user_locale || I18n.default_locale) do
 | 
			
		||||
      yield
 | 
			
		||||
    end
 | 
			
		||||
  def locale_for_account(account, &block)
 | 
			
		||||
    I18n.with_locale(account.user_locale || I18n.default_locale, &block)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user