diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 142b66d7f..08a780ac1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -365,13 +365,6 @@ Performance/RedundantMatch: - 'app/controllers/valuation/spending_proposals_controller.rb' - 'app/helpers/embed_videos_helper.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent. -Rails/Blank: - Exclude: - - 'app/controllers/management/base_controller.rb' - # Offense count: 1 # Cop supports --auto-correct. Rails/Delegate: diff --git a/app/controllers/management/base_controller.rb b/app/controllers/management/base_controller.rb index f7a9c2214..66aee5a01 100644 --- a/app/controllers/management/base_controller.rb +++ b/app/controllers/management/base_controller.rb @@ -9,7 +9,7 @@ class Management::BaseController < ActionController::Base private def verify_manager - raise ActionController::RoutingError.new('Not Found') unless current_manager.present? + raise ActionController::RoutingError.new('Not Found') if current_manager.blank? end def current_manager