Fixed issue with ambiguous reference.
This commit is contained in:
parent
ef065ce8d6
commit
af104f8c5f
|
@ -56,7 +56,7 @@ module Google
|
||||||
data = self.body
|
data = self.body
|
||||||
case media_type
|
case media_type
|
||||||
when 'application/json'
|
when 'application/json'
|
||||||
data = JSON.parse(data)
|
data = ::JSON.parse(data)
|
||||||
# Strip data wrapper, if present
|
# Strip data wrapper, if present
|
||||||
data = data['data'] if data.has_key?('data')
|
data = data['data'] if data.has_key?('data')
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue