diff --git a/lib/compat/multi_json.rb b/lib/compat/multi_json.rb index f8267194e..3974f084b 100644 --- a/lib/compat/multi_json.rb +++ b/lib/compat/multi_json.rb @@ -1,6 +1,9 @@ require 'multi_json' -if !MultiJson.respond_to?(:load) || MultiJson.method(:load).owner == Kernel +if !MultiJson.respond_to?(:load) || [ + Kernel, + defined?(ActiveSupport::Dependencies::Loadable) && ActiveSupport::Dependencies::Loadable +].compact.include?(MultiJson.method(:load).owner) module MultiJson class <