Sha256: d80bf50930cd9d3146382d851c8e263a38bd683eedf2ad512e6859a549dc406b
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
# Re-register application/json, adding our own vendored mime types as aliases # TODO: Be more generous about accepting version constraints. Currently, # requesting v1.5 when we're running v1.5.2 will return a 406. api_mime_types = %W( application/vnd.landable.v#{Landable::VERSION::MAJOR}+json application/vnd.landable.v#{Landable::VERSION::STRING}+json application/vnd.landable+json text/x-json application/jsonrequest ) Mime::Type.unregister :json Mime::Type.register 'application/json', :json, api_mime_types
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
landable-1.14.0 | lib/landable/mime_types.rb |
landable-1.13.2 | lib/landable/mime_types.rb |