Updated to avoid deprecation of encode and decode methods in multi_json gem.

This commit is contained in:
Bob Aman committed 2012-04-24 14:39:25 +03:00
1 parent 96b697bd5f
commit c651d69674
6 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -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