This should resolve the issue with Kernel#load.
This commit is contained in:
parent
2c567fd720
commit
dd8cee65b2
|
@ -1,14 +1,14 @@
|
||||||
gem 'multi_json', '>= 1.0.0'
|
gem 'multi_json', '>= 1.0.0'
|
||||||
require 'multi_json'
|
require 'multi_json'
|
||||||
|
|
||||||
unless MultiJson.respond_to?(:load)
|
if !MultiJson.respond_to?(:load) || MultiJson.method(:load).owner == Kernel
|
||||||
module MultiJson
|
module MultiJson
|
||||||
class <<self
|
class <<self
|
||||||
alias :load :decode
|
alias :load :decode
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
unless MultiJson.respond_to?(:dump)
|
if !MultiJson.respond_to?(:dump)
|
||||||
module MultiJson
|
module MultiJson
|
||||||
class <<self
|
class <<self
|
||||||
alias :dump :encode
|
alias :dump :encode
|
||||||
|
|
Loading…
Reference in New Issue