summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-12 18:17:21 +0100
committerRémy Coutable <remy@rymai.me>2016-12-12 18:17:21 +0100
commitc1518a3230fb3f59111325c34fa5b13fa53e4767 (patch)
treebe27f700c978a9af2399dfce8e3ba688d83ce1ee
parentdf629173d97ffcb7ecda306e83024abc7abae3f7 (diff)
downloadgitlab-ce-fix-autoloading-issue.tar.gz
Don't require `API::API` in routesfix-autoloading-issue
`API::API` is autoloaded and shouldn't be required in non-autoloaded code. Otherwise, we get the following dreaded error: A copy of API::Helpers has been removed from the module tree but is still active! Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--config/routes.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 03b47261e7e..06d565df469 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,6 +1,5 @@
require 'sidekiq/web'
require 'sidekiq/cron/web'
-require 'api/api'
require 'constraints/group_url_constrainer'
Rails.application.routes.draw do