From 9de738aadc3422b48e41f2b54e8fff3da0607a26 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 16 Nov 2005 21:34:24 +0000 Subject: [PATCH] Remove the unused, slow response_dump and session_dump variables from error pages. References #1222. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ .../templates/rescues/_request_and_response.rhtml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index b6c03940c3..055ab486e1 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Remove the unused, slow response_dump and session_dump variables from error pages. #1222 [lmarlow@yahoo.com] + * Performance tweaks: use Set instead of Array to speed up prototype helper include? calls. Avoid logging code if logger is nil. Inline commonly-called template presence checks. #2880, #2881, #2882, #2883 [Stefan Kaes] * MemCache store may be given multiple addresses. #2869 [Ryan Carver ] diff --git a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml index 05e2f7907c..81995320c2 100644 --- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml @@ -31,8 +31,6 @@ request_parameters_without_action.delete("controller") request_dump = request_parameters_without_action.inspect.gsub(/,/, ",\n") - session_dump = @request.session.instance_variable_get("@data").inspect.gsub(/,/, ",\n") - response_dump = @response.inspect.gsub(/,/, ",\n") %>

Request