Vote #80629
完了Rails 6: Use #media_type instead of #content_type to test the MIME type of a response
0%
説明
Rails 6 displays deprecation warning if you use @@response.content_type@ to check the MIME type of the response.
DEPRECATION WARNING: Rails 6.1 will return Content-Type header without modification. If you want just the MIME type, please use `#media_type` instead.
The attached patch replaces @#content_type@ with @#media_type@ to surpress the warning.
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------
related_issues
relates,Closed,29914,Migrate to Rails 6.1 with Zeitwerk autoloading