summaryrefslogtreecommitdiff
path: root/lib/gitlab/patch
diff options
context:
space:
mode:
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