Browse files

Really fix the syntax error issue

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 369d054 commit 0ea1375d7526cd1bbd74947f292d13b83a7617e6 @dhh dhh committed Jul 28, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_controller/rescue.rb
View
3 actionpack/lib/action_controller/rescue.rb
@@ -65,8 +65,9 @@ def local_request? #:doc:
# Renders a detailed diagnostics screen on action exceptions.
def rescue_action_locally(exception)
+ add_variables_to_assigns
@template.instance_variable_set("@exception", exception)
- @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/")
+ @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/")
@template.send(:assign_variables_from_controller)
@template.instance_variable_set("@contents", @template.render_file(template_path_for_local_rescue(exception), false))

0 comments on commit 0ea1375

Please sign in to comment.