Fix Rails/Blank rubocop issue

This commit is contained in:
Bertocq
2017-07-09 00:34:57 +02:00
parent 6285ad3b68
commit 4e0d88739d
2 changed files with 1 additions and 8 deletions

View File

@@ -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:

View File

@@ -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