1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

use old multijson methods

This commit is contained in:
Carl Allen 2012-11-29 17:02:15 -08:00
parent f653aee448
commit 65db8fd4ab

View file

@ -23,7 +23,7 @@ module Fog
if MultiJson.respond_to?(:dump) if MultiJson.respond_to?(:dump)
def self.encode(obj) def self.encode(obj)
MultiJson.dump(obj) MultiJson.encode(obj)
end end
else else
def self.encode(obj) def self.encode(obj)
@ -33,7 +33,7 @@ module Fog
if MultiJson.respond_to?(:load) if MultiJson.respond_to?(:load)
def self.decode(obj) def self.decode(obj)
MultiJson.load(obj) MultiJson.decode(obj)
end end
else else
def self.decode(obj) def self.decode(obj)