diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 18:05:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 18:05:56 +0000 |
commit | 40597fdec080d55d36e97aab1a0b98dfc35517b9 (patch) | |
tree | 20cb97ab39cd511c22657cc23c5834464001feac /lib/gitlab/patch | |
parent | a712542edb9d52105409462de3e56d2a6d6f6c7a (diff) | |
download | gitlab-ce-40597fdec080d55d36e97aab1a0b98dfc35517b9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r-- | lib/gitlab/patch/draw_route.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/gitlab/patch/draw_route.rb b/lib/gitlab/patch/draw_route.rb index fc9d7ae805f..4c8ca015974 100644 --- a/lib/gitlab/patch/draw_route.rb +++ b/lib/gitlab/patch/draw_route.rb @@ -6,12 +6,11 @@ module Gitlab module Patch module DrawRoute prepend_if_ee('EE::Gitlab::Patch::DrawRoute') # rubocop: disable Cop/InjectEnterpriseEditionModule - prepend_if_com('Com::Gitlab::Patch::DrawRoute') RoutesNotFound = Class.new(StandardError) def draw(routes_name) - drawn_any = draw_ce(routes_name) | draw_ee(routes_name) | draw_com(routes_name) + drawn_any = draw_ce(routes_name) | draw_ee(routes_name) drawn_any || raise(RoutesNotFound.new("Cannot find #{routes_name}")) end @@ -24,10 +23,6 @@ module Gitlab true end - def draw_com(_) - false - end - def route_path(routes_name) Rails.root.join(routes_name) end |