Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-08 21:05:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-08 21:05:56 +0300
commit40597fdec080d55d36e97aab1a0b98dfc35517b9 (patch)
tree20cb97ab39cd511c22657cc23c5834464001feac /lib/gitlab/patch
parenta712542edb9d52105409462de3e56d2a6d6f6c7a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r--lib/gitlab/patch/draw_route.rb7
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