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:
parent
f653aee448
commit
65db8fd4ab
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue