Fix Rails/Blank rubocop issue
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user