Add and apply Style/ExplicitBlockArgument rule

We were already applying it in most places.
This commit is contained in:
Javi Martín
2021-08-09 19:11:28 +02:00
parent 4e33664055
commit a102f3f0a7
3 changed files with 8 additions and 16 deletions

View File

@@ -129,10 +129,8 @@ class Mailer < ApplicationMailer
private
def with_user(user)
I18n.with_locale(user.locale) do
yield
end
def with_user(user, &block)
I18n.with_locale(user.locale, &block)
end
def prevent_delivery_to_users_without_email