Sha256: 2db99339d0157ecd379a2425485fa4ad5f210133dd881805a37d838100cb138a
Contents?: true
Size: 427 Bytes
Versions: 163
Compression:
Stored size: 427 Bytes
Contents
require 'active_support/json' module ActiveResource module Formats module JsonFormat extend self def extension "json" end def mime_type "application/json" end def encode(hash, options = nil) ActiveSupport::JSON.encode(hash, options) end def decode(json) Formats.remove_root(ActiveSupport::JSON.decode(json)) end end end end
Version data entries
163 entries across 137 versions & 13 rubygems