summaryrefslogtreecommitdiff
path: root/lib/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/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/api/api.rb')
-rw-r--r--lib/api/api.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb
index 6ddfe11d98e..d41b4b71865 100644
--- a/lib/api/api.rb
+++ b/lib/api/api.rb
@@ -1,8 +1,6 @@
-Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}
-
module API
class API < Grape::API
- include APIGuard
+ include ::API::APIGuard
version 'v3', using: :path
rescue_from ActiveRecord::RecordNotFound do