mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #2340 from rails-api/action_dispatch_response_media_type
Configure `ActionDispatch::Response#content_type` behavior on Rails 6+
This commit is contained in:
commit
e349395869
@ -12,7 +12,7 @@ ruby_supported_versions:
|
||||
|
||||
jruby_supported_versions:
|
||||
- &jruby_9_1 jruby-9.1.17.0
|
||||
- &jruby_9_2 jruby-9.2.7.0
|
||||
- &jruby_9_2 jruby-9.2.8.0
|
||||
- &jruby_head jruby-head
|
||||
|
||||
jdk_supported_versions:
|
||||
|
||||
@ -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