Add and apply Style/ExplicitBlockArgument rule
We were already applying it in most places.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user