diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-02-25 20:59:16 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-02-25 21:04:39 +0200 |
commit | f3c721c73b598f72f040940fae953f4d06c5e155 (patch) | |
tree | 9a1e91e61f02d5c20efbe1686afd59d07a5640a5 /lib/api/helpers.rb | |
parent | 2a5172863e3a71519ef344e1a72c970c0a7b6330 (diff) | |
download | gitlab-ci-f3c721c73b598f72f040940fae953f4d06c5e155.tar.gz |
rubocop install
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 6 |
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 |