diff options
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 |