summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-02-25 20:59:16 +0200
committerValery Sizov <vsv2711@gmail.com>2015-02-25 21:04:39 +0200
commitf3c721c73b598f72f040940fae953f4d06c5e155 (patch)
tree9a1e91e61f02d5c20efbe1686afd59d07a5640a5 /lib/api/helpers.rb
parent2a5172863e3a71519ef344e1a72c970c0a7b6330 (diff)
downloadgitlab-ci-f3c721c73b598f72f040940fae953f4d06c5e155.tar.gz
rubocop install
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index ded4118..fc19d76 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -6,8 +6,8 @@ module API
def current_user
@current_user ||= begin
options = {
- :private_token => (params[PRIVATE_TOKEN_PARAM] || env[PRIVATE_TOKEN_HEADER]),
- :url => params[:url]
+ private_token: (params[PRIVATE_TOKEN_PARAM] || env[PRIVATE_TOKEN_HEADER]),
+ url: params[:url]
}
UserSession.new.authenticate_by_token(options)
end
@@ -80,7 +80,7 @@ module API
end
def render_api_error!(message, status)
- error!({'message' => message}, status)
+ error!({ 'message' => message }, status)
end
private