This should resolve the issue with Kernel#load.

This commit is contained in:
Bob Aman 2012-10-08 17:06:08 +03:00
parent 2c567fd720
commit dd8cee65b2
1 changed files with 2 additions and 2 deletions

View File

@ -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