mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
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`
This commit is contained in:
parent
cec9ebab7b
commit
55a6b23cd8
@ -9,6 +9,10 @@ module ActiveModelSerializers
|
||||
config.action_controller.perform_caching = true
|
||||
config.action_controller.cache_store = :memory_store
|
||||
|
||||
if Rails::VERSION::MAJOR >= 6
|
||||
config.action_dispatch.return_only_media_type_on_content_type = true
|
||||
end
|
||||
|
||||
config.filter_parameters += [:password]
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user