Remove deprecated `ActionDispatch::Http::ParameterFilter`

This commit is contained in:
Rafael Mendonça França 2020-05-05 01:18:38 -04:00
parent 6e7147ecf3
commit 3e2552db89
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
5 changed files with 6 additions and 19 deletions

View File

@ -1,3 +1,7 @@
* Remove deprecated `ActionDispatch::Http::ParameterFilter`.
*Rafael Mendonça França*
* Added support for exclusive no-store Cache-Control header.
If `no-store` is set on Cache-Control header it is exclusive (all other cache directives are dropped).

View File

@ -83,7 +83,6 @@ module ActionDispatch
autoload :Headers
autoload :MimeNegotiation
autoload :Parameters
autoload :ParameterFilter
autoload :UploadedFile, "action_dispatch/http/upload"
autoload :URL
end

View File

@ -1,12 +0,0 @@
# frozen_string_literal: true
require "active_support/deprecation/constant_accessor"
require "active_support/parameter_filter"
module ActionDispatch
module Http
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "ParameterFilter", "ActiveSupport::ParameterFilter",
message: "ActionDispatch::Http::ParameterFilter is deprecated and will be removed from Rails 6.1. Use ActiveSupport::ParameterFilter instead."
end
end

View File

@ -1116,12 +1116,6 @@ class RequestParameters < BaseRequestTest
end
class RequestParameterFilter < BaseRequestTest
test "parameter filter is deprecated" do
assert_deprecated do
ActionDispatch::Http::ParameterFilter.new(["blah"])
end
end
test "filtered_parameters returns params filtered" do
request = stub_request(
"action_dispatch.request.parameters" => {

View File

@ -55,6 +55,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
### Removals
* Remove deprecated `ActionDispatch::Http::ParameterFilter`.
* Remove deprecated `force_ssl` at the controller level.
### Deprecations