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'
|
||||
require 'multi_json'
|
||||
|
||||
unless MultiJson.respond_to?(:load)
|
||||
if !MultiJson.respond_to?(:load) || MultiJson.method(:load).owner == Kernel
|
||||
module MultiJson
|
||||
class <<self
|
||||
alias :load :decode
|
||||
end
|
||||
end
|
||||
end
|
||||
unless MultiJson.respond_to?(:dump)
|
||||
if !MultiJson.respond_to?(:dump)
|
||||
module MultiJson
|
||||
class <<self
|
||||
alias :dump :encode
|
||||
|
|
Loading…
Reference in New Issue