diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-04 19:56:56 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-04 19:56:56 -0500 |
commit | 5b8801442ea02fc942ae0ee8ef81a9120525f5f0 (patch) | |
tree | b7efb39de5b695f940033c66ab9aca9a7ecb1f57 /actionpack/lib/action_dispatch/middleware/templates | |
parent | 9f062970ca67833dda11ac17c54eec5bb5f111b1 (diff) | |
download | rails-5b8801442ea02fc942ae0ee8ef81a9120525f5f0.tar.gz rails-5b8801442ea02fc942ae0ee8ef81a9120525f5f0.tar.bz2 rails-5b8801442ea02fc942ae0ee8ef81a9120525f5f0.zip |
Only show dump of regular env methods on exception screen (not all the rack crap) [DHH]
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb index 97f7cf0bbe..0c5bafa666 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb @@ -24,7 +24,7 @@ <div id="session_dump" style="display:none"><pre><%= debug_hash @request.session %></pre></div> <p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show env dump</a></p> -<div id="env_dump" style="display:none"><pre><%= debug_hash @request.env %></pre></div> +<div id="env_dump" style="display:none"><pre><%= debug_hash @request.env.slice(*@request.class::ENV_METHODS) %></pre></div> <h2 style="margin-top: 30px">Response</h2> |