File tree Expand file tree Collapse file tree 4 files changed +6
-17
lines changed Expand file tree Collapse file tree 4 files changed +6
-17
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Deprecate ` Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality ` .
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -16,20 +16,6 @@ class InvalidType < ::Mime::Type::InvalidMimeType; end
16
16
17
17
included do
18
18
mattr_accessor :ignore_accept_header , default : false
19
-
20
- def return_only_media_type_on_content_type = ( value )
21
- ActionDispatch . deprecator . warn (
22
- "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
23
- " be removed in Rails 7.2."
24
- )
25
- end
26
-
27
- def return_only_media_type_on_content_type
28
- ActionDispatch . deprecator . warn (
29
- "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
30
- " be removed in Rails 7.2."
31
- )
32
- end
33
19
end
34
20
35
21
# The MIME type of the HTTP request, such as Mime[:xml].
Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ class Railtie < Rails::Railtie # :nodoc:
51
51
52
52
ActiveSupport . on_load ( :action_dispatch_request ) do
53
53
self . ignore_accept_header = app . config . action_dispatch . ignore_accept_header
54
- unless app . config . action_dispatch . respond_to? ( :return_only_request_media_type_on_content_type )
55
- self . return_only_media_type_on_content_type = app . config . action_dispatch . return_only_request_media_type_on_content_type
56
- end
57
54
ActionDispatch ::Request ::Utils . perform_deep_munge = app . config . action_dispatch . perform_deep_munge
58
55
end
59
56
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
56
56
57
57
* Remove deprecated comparison between ` ActionController::Parameters ` and ` Hash ` .
58
58
59
+ * Remove deprecated ` Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type ` .
60
+
59
61
### Deprecations
60
62
61
63
* Deprecate ` Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality ` .
You can’t perform that action at this time.
0 commit comments