Autofix Rubocop Style/ExplicitBlockArgument (#23704)
This commit is contained in:
parent
5179c47087
commit
f0e1b12c10
2 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue