Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue