Use 'media_type' instead of Rails 6.1 deprecated 'content_type'
This addresses the following Rails 6.1 deprecation notice:
DEPRECATION WARNING: Rails 6.1 will return Content-Type header without
modification. If you want just the MIME type, please use `#media_type`
instead.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Showing
Please register or sign in to comment