Sha256: f6d59637aed492dfbedb743959d51a1ae343eef95d9f7ae2340a5c749b52c8e8

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

# module ActiveModelSerializers::JSONAPI
#   HEADERS = {
#     content_type: { "CONTENT_TYPE" => JSONAPI::MEDIA_TYPE }
#   }
#   MEDIA_TYPE = 'application/vnd.api+json'
# end
#
# Mime::Type.register ActiveModelSerializers::JSONAPI::MEDIA_TYPE, :api_json
#
# ActionDispatch::ParamsParser::DEFAULT_PARSERS[Mime::Type.lookup(ActiveModelSerializers::JSONAPI::MEDIA_TYPE)] = lambda do |body|
#   data = JSON.parse(body)
#   data = {:_json => data} unless data.is_a?(Hash)
#   data.with_indifferent_access
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers-0.9.4 lib/active_model_serializers/mime_types.rb