17 lines
254 B
Ruby
17 lines
254 B
Ruby
|
require 'multi_json'
|
||
|
|
||
|
unless MultiJson.respond_to?(:load)
|
||
|
module MultiJson
|
||
|
class <<self
|
||
|
alias :load :decode
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
unless MultiJson.respond_to?(:dump)
|
||
|
module MultiJson
|
||
|
class <<self
|
||
|
alias :dump :encode
|
||
|
end
|
||
|
end
|
||
|
end
|