Compatible multi_json >= 1.0.0 with Rails3.2.8
This commit is contained in:
parent
0903702738
commit
92a074bc18
|
@ -1,7 +1,7 @@
|
||||||
gem 'multi_json', '>= 1.0.0'
|
gem 'multi_json', '>= 1.0.0'
|
||||||
require 'multi_json'
|
require 'multi_json'
|
||||||
|
|
||||||
if !MultiJson.respond_to?(:load) || MultiJson.method(:load).owner == Kernel
|
if !MultiJson.respond_to?(:load) || [Kernel, ActiveSupport::Dependencies::Loadable].include?(MultiJson.method(:load).owner)
|
||||||
module MultiJson
|
module MultiJson
|
||||||
class <<self
|
class <<self
|
||||||
alias :load :decode
|
alias :load :decode
|
||||||
|
|
Loading…
Reference in New Issue