Remove deprecated `ActionDispatch::Http::ParameterFilter`
This commit is contained in:
parent
6e7147ecf3
commit
3e2552db89
|
@ -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).
|
||||
|
|
|
@ -83,7 +83,6 @@ module ActionDispatch
|
|||
autoload :Headers
|
||||
autoload :MimeNegotiation
|
||||
autoload :Parameters
|
||||
autoload :ParameterFilter
|
||||
autoload :UploadedFile, "action_dispatch/http/upload"
|
||||
autoload :URL
|
||||
end
|
||||
|
|
|
@ -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
|
|
@ -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" => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue