diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 360baeee1..1954c2548 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -87,12 +87,6 @@ Metrics/ModuleLength: Metrics/PerceivedComplexity: Max: 11 -# Offense count: 1 -# Cop supports --auto-correct. -Performance/RedundantBlockCall: - Exclude: - - 'app/mailers/mailer.rb' - # Offense count: 4 # Cop supports --auto-correct. Performance/RedundantMatch: diff --git a/app/mailers/mailer.rb b/app/mailers/mailer.rb index 7e8970c61..d663f9c63 100644 --- a/app/mailers/mailer.rb +++ b/app/mailers/mailer.rb @@ -113,7 +113,7 @@ class Mailer < ApplicationMailer def with_user(user, &block) I18n.with_locale(user.locale) do - block.call + yield end end end