Sha256: cf7912e70ae0ef3e7b965182318803386d65c4fe533917379346085194c6768e

Contents?: true

Size: 240 Bytes

Versions: 11

Compression:

Stored size: 240 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

11 entries across 11 versions & 1 rubygems

Version Path
jsonapi-resources-0.4.2 lib/jsonapi/mime_types.rb
jsonapi-resources-0.4.1 lib/jsonapi/mime_types.rb
jsonapi-resources-0.4.0 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.3 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.2 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.1 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.0 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.0.pre2 lib/jsonapi/mime_types.rb
jsonapi-resources-0.3.0.pre1 lib/jsonapi/mime_types.rb
jsonapi-resources-0.2.0 lib/jsonapi/mime_types.rb
jsonapi-resources-0.1.1 lib/jsonapi/mime_types.rb