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

Version Path
jsonapi-resources-0.6.1 lib/jsonapi/mime_types.rb
jsonapi-resources-0.6.0 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.9 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.8 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.7 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.6 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.5 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.4 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.3 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.2 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.1 lib/jsonapi/mime_types.rb
jsonapi-resources-0.5.0 lib/jsonapi/mime_types.rb
jsonapi-resources-0.4.4 lib/jsonapi/mime_types.rb
jsonapi-resources-0.4.3 lib/jsonapi/mime_types.rb