From 6e40390d2696abaa47d5529ba76dc54beac31239 Mon Sep 17 00:00:00 2001 From: sanemat Date: Sat, 13 Oct 2012 15:43:52 +0900 Subject: [PATCH] Remove too much checking --- lib/compat/multi_json.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/multi_json.rb b/lib/compat/multi_json.rb index e62de7640..03ccf6dc9 100644 --- a/lib/compat/multi_json.rb +++ b/lib/compat/multi_json.rb @@ -2,7 +2,7 @@ gem 'multi_json', '>= 1.0.0' require 'multi_json' if !MultiJson.respond_to?(:load) || [ - defined?(Kernel) && Kernel, + Kernel, defined?(ActiveSupport::Dependencies::Loadable) && ActiveSupport::Dependencies::Loadable ].compact.include?(MultiJson.method(:load).owner) module MultiJson