lib/action_dispatch/middleware/templates/rescues/template_error.erb in actionpack-3.0.20 vs lib/action_dispatch/middleware/templates/rescues/template_error.erb in actionpack-3.1.0.beta1
- old
+ new
@@ -11,11 +11,7 @@
<p>Extracted source (around line <b>#<%=h @exception.line_number %></b>):
<pre><code><%=h @exception.source_extract %></code></pre></p>
<p><%=h @exception.sub_template_message %></p>
-<% @real_exception = @exception
- @exception = @exception.original_exception || @exception %>
-<%= render :file => "rescues/_trace.erb" %>
-<% @exception = @real_exception %>
-
-<%= render :file => "rescues/_request_and_response.erb" %>
+<%= render :template => "rescues/_trace" %>
+<%= render :template => "rescues/_request_and_response" %>