Rubocop autocorrect Performance/RedundantBlockCall issue and remove it from rubocop_todo list
This commit is contained in:
@@ -113,7 +113,7 @@ class Mailer < ApplicationMailer
|
||||
|
||||
def with_user(user, &block)
|
||||
I18n.with_locale(user.locale) do
|
||||
block.call
|
||||
yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user