Sha256: e83b55fc46b737b4d371a214409487e927ab87685b5b25b73f221ee8d0fdfbf5
Contents?: true
Size: 242 Bytes
Versions: 14
Compression:
Stored size: 242 Bytes
Contents
module JSONAPI MEDIA_TYPE = 'application/vnd.api+json' end Mime::Type.register JSONAPI::MEDIA_TYPE, :api_json ActionDispatch::ParamsParser::DEFAULT_PARSERS[Mime::Type.lookup(JSONAPI::MEDIA_TYPE)] = lambda do |body| JSON.parse(body) end
Version data entries
14 entries across 14 versions & 1 rubygems