Repository URL to install this package:
|
Version:
2.23.0 ▾
|
module ActiveResource
class Base
self.include_root_in_json = true
# Open up ARes to force include_root_in_json to be ignored
def as_json(options = nil)
root = if options && options.key?(:root)
options[:root]
else
false
end
if root
{ root => serializable_hash(options) }
else
serializable_hash(options)
end
end
end
# Maybe we need this in the future
# module Formats
# module JsonFormat
# def decode(json)
# ActiveSupport::JSON.decode(json)
# end
# end
# end
end