about summary refs log tree commit diff
path: root/app/mailers/application_mailer.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 21:18:08 -0500
committerGitHub <noreply@github.com>2023-02-20 11:18:08 +0900
commitf0e1b12c101e0dd0ddaaef8bdcc166624dba62d5 (patch)
tree67a3328d50191f16ead33c33b4f6b8dc81116e7b /app/mailers/application_mailer.rb
parent5179c47087e7807162f1466ec61a797586de007f (diff)
Autofix Rubocop Style/ExplicitBlockArgument (#23704)
Diffstat (limited to 'app/mailers/application_mailer.rb')
-rw-r--r--app/mailers/application_mailer.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
index a37682eca..73b623576 100644
--- a/app/mailers/application_mailer.rb
+++ b/app/mailers/application_mailer.rb
@@ -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