api remove useless symbolize
This commit is contained in:
parent
07962cc2c7
commit
ceb09c5967
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class APIParticulier::API
|
||||||
end
|
end
|
||||||
|
|
||||||
def scopes
|
def scopes
|
||||||
get(INTROSPECT_RESOURCE_NAME)[:scopes]
|
get(INTROSPECT_RESOURCE_NAME)['scopes']
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -24,7 +24,7 @@ class APIParticulier::API
|
||||||
timeout: TIMEOUT)
|
timeout: TIMEOUT)
|
||||||
|
|
||||||
if response.success?
|
if response.success?
|
||||||
JSON.parse(response.body, symbolize_names: true)
|
JSON.parse(response.body)
|
||||||
elsif response.code == 401
|
elsif response.code == 401
|
||||||
raise Unauthorized.new(response)
|
raise Unauthorized.new(response)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue