mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Autofix Rubocop Style/ExplicitBlockArgument (#23704)
This commit is contained in:
parent
5179c47087
commit
f0e1b12c10
@ -2323,12 +2323,6 @@ Style/ConcatArrayLiterals:
|
|||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
Style/ExplicitBlockArgument:
|
|
||||||
Exclude:
|
|
||||||
- 'app/mailers/application_mailer.rb'
|
|
||||||
|
|
||||||
# Offense count: 10
|
# Offense count: 10
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
# This cop supports safe autocorrection (--autocorrect).
|
||||||
# Configuration parameters: AllowedVars.
|
# Configuration parameters: AllowedVars.
|
||||||
|
@ -9,9 +9,7 @@ class ApplicationMailer < ActionMailer::Base
|
|||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def locale_for_account(account)
|
def locale_for_account(account, &block)
|
||||||
I18n.with_locale(account.user_locale || I18n.default_locale) do
|
I18n.with_locale(account.user_locale || I18n.default_locale, &block)
|
||||||
yield
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user