projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
21704: fixed auth-action test
[arvados.git]
/
sdk
/
ruby-google-api-client
/
lib
/
compat
/
multi_json.rb
1
require 'multi_json'
2
3
if !MultiJson.respond_to?(:load) || [
4
Kernel,
5
defined?(ActiveSupport::Dependencies::Loadable) && ActiveSupport::Dependencies::Loadable
6
].compact.include?(MultiJson.method(:load).owner)
7
module MultiJson
8
class <<self
9
alias :load :decode
10
end
11
end
12
end
13
if !MultiJson.respond_to?(:dump)
14
module MultiJson
15
class <<self
16
alias :dump :encode
17
end
18
end
19
end