diff options
author | Grey Baker <greysteil@gmail.com> | 2014-07-13 17:58:20 +0100 |
---|---|---|
committer | Grey Baker <greysteil@gmail.com> | 2014-07-14 11:55:44 +0100 |
commit | f49d20ef36c2d339e7a988fdc52981cdb95af22f (patch) | |
tree | 821229483a98c8104aef5292cc89e18563d83873 /actionview/lib/action_view/helpers/output_safety_helper.rb | |
parent | ccac6082bd4265f4827cc8bf9748c983d0a1c6c6 (diff) | |
download | rails-f49d20ef36c2d339e7a988fdc52981cdb95af22f.tar.gz rails-f49d20ef36c2d339e7a988fdc52981cdb95af22f.tar.bz2 rails-f49d20ef36c2d339e7a988fdc52981cdb95af22f.zip |
Stash original path in `ShowExceptions` middleware
`ActionDispatch::ShowExceptions` overwrites `PATH_INFO` with the status code
for the exception defined in `ExceptionWrapper`, so the path the user was
visiting when an exception occurred was not previously available to any custom
exceptions_app.
The original `PATH_INFO` is now stashed in
`env["action_dispatch.original_path"]`.
Diffstat (limited to 'actionview/lib/action_view/helpers/output_safety_helper.rb')
0 files changed, 0 insertions, 0 deletions