Updated to avoid deprecation of encode and decode methods in multi_json gem.
This commit is contained in:
1 parent
96b697bd5f
commit
c651d69674
6 files changed
+10
-10
No files matched your search
@@ -63,7 +63,7 @@ module Google
|
||||
data = self.body
|
||||
case media_type
|
||||
when 'application/json'
|
||||
data = MultiJson.decode(data)
|
||||
data = MultiJson.load(data)
|
||||
# Strip data wrapper, if present
|
||||
data = data['data'] if data.has_key?('data')
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user