diff options
author | Grey Baker <greysteil@gmail.com> | 2016-07-12 16:41:09 +0100 |
---|---|---|
committer | Grey Baker <greysteil@gmail.com> | 2016-07-12 16:41:09 +0100 |
commit | fe859a54219740fa8b4e09a592820d2ee12ba222 (patch) | |
tree | e02383486dfc0eb60178f30bbcb414611cc0a08a /actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | |
parent | de1227a5472f688469379054d271b59be1ecfcd0 (diff) | |
download | rails-fe859a54219740fa8b4e09a592820d2ee12ba222.tar.gz rails-fe859a54219740fa8b4e09a592820d2ee12ba222.tar.bz2 rails-fe859a54219740fa8b4e09a592820d2ee12ba222.zip |
Handle `Rack::QueryParser` errors in `ActionDispatch::ExceptionWrapper`
Rack [recently](https://github.com/rack/rack/commit/7e7a3890449b5cf5b86929c79373506e5f1909fb)
moved the namespace of its `ParameterTypeError` and `InvalidParameterError`
errors. Whilst an alias for the old name was added, the logic in
`ActionDispatch::ExceptionWrapper` was still broken by this change, since it
relies on the class name.
This PR updates `ActionDispatch::ExceptionWrapper` to handle the Rack 2.0
namespaced errors correctly. We no longer need to worry about the old names,
since Rails specifies Rack ~> 2.0.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/debug_exceptions.rb')
0 files changed, 0 insertions, 0 deletions