mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Actually call the new MultiJSON 1.3.2 API methods.
This commit is contained in:
parent
7175cdc34f
commit
282ee0fb20
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ module Fog
|
|||
|
||||
if MultiJson.respond_to?(:dump)
|
||||
def self.encode(obj)
|
||||
MultiJson.encode(obj)
|
||||
MultiJson.dump(obj)
|
||||
end
|
||||
else
|
||||
def self.encode(obj)
|
||||
|
@ -33,7 +33,7 @@ module Fog
|
|||
|
||||
if MultiJson.respond_to?(:load)
|
||||
def self.decode(obj)
|
||||
MultiJson.decode(obj)
|
||||
MultiJson.load(obj)
|
||||
end
|
||||
else
|
||||
def self.decode(obj)
|
||||
|
|
Loading…
Add table
Reference in a new issue