Skip to content

Commit 55a6b23

Browse files
committed
Configure ActionDispatch::Response#content_type behavior on Rails 6+
in order to retain old behavior, set `config.action_dispatch.return_only_media_type_on_content_type` to true it can also be configured by setting `ActionDispatch::Response.return_only_media_type_on_content_type`
1 parent cec9eba commit 55a6b23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/support/rails_app.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module ActiveModelSerializers
99
config.action_controller.perform_caching = true
1010
config.action_controller.cache_store = :memory_store
1111

12+
if Rails::VERSION::MAJOR >= 6
13+
config.action_dispatch.return_only_media_type_on_content_type = true
14+
end
15+
1216
config.filter_parameters += [:password]
1317
end
1418

0 commit comments

Comments
 (0)