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