summaryrefslogtreecommitdiff
path: root/lib/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api.rb')
-rw-r--r--lib/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.rb b/lib/api.rb
index 6a8a3d651c0..3ff3b3836f4 100644
--- a/lib/api.rb
+++ b/lib/api.rb
@@ -3,7 +3,7 @@ Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}
module Gitlab
class API < Grape::API
VERSION = 'v2'
- version VERSION, :using => :path
+ version VERSION, using: :path
rescue_from ActiveRecord::RecordNotFound do
rack_response({'message' => '404 Not found'}.to_json, 404)