Use media_type instead of content_type
In Rails 6, content_type now returns the complete header. We use media_type to just get the MIME type portion See https://github.com/rails/rails/pull/36034
Showing
Please register or sign in to comment