Fixed issue with ambiguous reference.

This commit is contained in:
Bob Aman 2011-09-22 16:26:33 +03:00
parent ef065ce8d6
commit af104f8c5f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module Google
data = self.body
case media_type
when 'application/json'
data = JSON.parse(data)
data = ::JSON.parse(data)
# Strip data wrapper, if present
data = data['data'] if data.has_key?('data')
else