Compatible multi_json >= 1.0.0 with Rails3.2.8
In specific, using active_support(also rails), MultiJson.method(:load).owner is ActiveSupport::Dependencies::Loadable
In this module, owner is ActiveSupport::Dependencies::Loadable, but some_module if you include, this has #load method, then This does not work, I think. It's fragile.
Add namespace check
This will probably cause NameError exceptions if ActiveSupport isn't loaded.
yes, so I pushed commit for checking namespace f9ccc6e
Normally I'm OK with defensive coding, but checking for the existence of Kernel is over the top. It's guaranteed to be defined.
Remove too much checking
Remove too much checking. 6e40390
Looks good. Have you signed the Google CLA?
I signed yesterday
This still breaks if there is another module that overrides the load method. For example https://github.com/thedarkone/rails-dev-boost.
Not sure if this will fix it but maybe it would be enough to check if
MultiJson.method(:load).owner == MultiJson
instead of the specific checks done here?