summaryrefslogtreecommitdiff
path: root/lib/ci/api/api.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-04-15 19:23:33 +0530
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-29 16:50:07 +0200
commit0a280158efeb7f681589ae7af24f0ed9052de809 (patch)
tree7599b5eaba9acaed3219dd078e47b10dbe95cc04 /lib/ci/api/api.rb
parent5fc310b440a7bb3ead91760ac2b7cbb1cee72f2a (diff)
downloadgitlab-ce-0a280158efeb7f681589ae7af24f0ed9052de809.tar.gz
Eager load `lib/api`
- So that the server doesn't have to be restarted for every change in dev.
Diffstat (limited to 'lib/ci/api/api.rb')
-rw-r--r--lib/ci/api/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/api.rb b/lib/ci/api/api.rb
index 353c4ddebf8..7cd8b6fbae2 100644
--- a/lib/ci/api/api.rb
+++ b/lib/ci/api/api.rb
@@ -3,7 +3,7 @@ Dir["#{Rails.root}/lib/ci/api/*.rb"].each {|file| require file}
module Ci
module API
class API < Grape::API
- include APIGuard
+ include ::API::APIGuard
version 'v1', using: :path
rescue_from ActiveRecord::RecordNotFound do