aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-03-22 19:26:44 -0400
committerGitHub <noreply@github.com>2017-03-22 19:26:44 -0400
commitccab1b2dbe8b4a21b99dedeab70da85a58e419af (patch)
tree9245050f580debbb1435c469abea5ab7318c0bba /actionpack
parent36334bf989a6a3e3b7254804d6c7f6227e2a98e9 (diff)
parentd5ea4bde5913738447485a2652991d0e08c47eaf (diff)
downloadrails-ccab1b2dbe8b4a21b99dedeab70da85a58e419af.tar.gz
rails-ccab1b2dbe8b4a21b99dedeab70da85a58e419af.tar.bz2
rails-ccab1b2dbe8b4a21b99dedeab70da85a58e419af.zip
Merge pull request #28528 from domcleal/parseerror-const-deprecation
Change AD::ParamsParser::ParseError deprecation so it can be rescued
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/http/parameters.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb
index 316f905100..79a2ef965b 100644
--- a/actionpack/lib/action_dispatch/http/parameters.rb
+++ b/actionpack/lib/action_dispatch/http/parameters.rb
@@ -115,6 +115,7 @@ module ActionDispatch
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