Use DeprecatedConstantAccessor for AD::ParamsParser::ParseError

Fixes #28525
This commit is contained in:
Dominic Cleal 2017-03-22 14:04:51 +00:00
parent f53a3005f5
commit d5ea4bde59
No known key found for this signature in database
GPG Key ID: 7C7D326F2C2B72CC

@ -115,6 +115,7 @@ def params_parsers
end
module ParamsParser
ParseError = ActiveSupport::Deprecation::DeprecatedConstantProxy.new("ActionDispatch::ParamsParser::ParseError", "ActionDispatch::Http::Parameters::ParseError")
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "ParseError", "ActionDispatch::Http::Parameters::ParseError"
end
end