From dd8cee65b296d52cf5a78e04979f8b7b3f4b179d Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Mon, 8 Oct 2012 17:06:08 +0300 Subject: [PATCH] This should resolve the issue with Kernel#load. --- lib/compat/multi_json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compat/multi_json.rb b/lib/compat/multi_json.rb index 673245446..7d3953ae9 100644 --- a/lib/compat/multi_json.rb +++ b/lib/compat/multi_json.rb @@ -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 <