stas / jsonapi.rb

Lightweight, simple and maintained JSON:API support for your next Ruby HTTP API.
MIT License
262 stars 58 forks source link

Fix deprecation warning with Content-Type header without modification #59

Closed ydakuka closed 1 year ago

ydakuka commented 3 years ago

What is the current behavior?

DEPRECATION WARNING: Rails 6.1 will return Content-Type header without modification. If you want just the MIME type, please use #media_type instead. (called from block (2 levels) in index at /app/app/controllers/api/v1/users_controller.rb:33)

System configuration

Rails version: 6.0.4

Ruby version: 2.7.3

Checklist

Please make sure the following requirements are complete:

stas commented 3 years ago

Thanks @ydakuka

I have one question though, is this backwards-compatible with earlier versions?

stas commented 1 year ago

Nice, will get a release this weekend :upside_down_face: