diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 20:36:54 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 20:36:54 -0800 |
commit | e89058268118e3b2be4ebaf5d7bf2c684b590437 (patch) | |
tree | 94f7b8986ebc3ae2a7c75ed9457628371f97a14b /lib/api/api.rb | |
parent | 84a5a548a5e1377f34b7989fc546eaedf86c3510 (diff) | |
download | gitlab-ce-e89058268118e3b2be4ebaf5d7bf2c684b590437.tar.gz |
Rubocop enabled for: Use spaces inside hash literal braces
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r-- | lib/api/api.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index cb46f477ff9..60858a39407 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -6,7 +6,7 @@ module API version 'v3', using: :path rescue_from ActiveRecord::RecordNotFound do - rack_response({'message' => '404 Not found'}.to_json, 404) + rack_response({ 'message' => '404 Not found' }.to_json, 404) end rescue_from :all do |exception| @@ -19,7 +19,7 @@ module API message << " " << trace.join("\n ") API.logger.add Logger::FATAL, message - rack_response({'message' => '500 Internal Server Error'}, 500) + rack_response({ 'message' => '500 Internal Server Error' }, 500) end format :json |