Permalink
Browse files

Abbreviate RAILS_ROOT in traces

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2555b88 commit 4da2d6c1edee8b31896a206a3ed18e7af605501d @jamis jamis committed Oct 19, 2005
Showing with 10 additions and 0 deletions.
  1. +5 −0 actionpack/CHANGELOG
  2. +5 −0 actionpack/lib/action_controller/templates/rescues/_trace.rhtml
View
@@ -1,3 +1,8 @@
+*SVN*
+
+* Abbreviate RAILS_ROOT in traces
+
+
*1.10.1* (October 19th, 2005)
* Update error trace templates [Nicholas Seckar]
@@ -4,9 +4,14 @@
["Framework Trace", @exception.framework_backtrace],
["Full Trace", @exception.clean_backtrace]
]
+ if defined?(RAILS_ROOT)
+ traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } }
+ end
names = traces.collect {|name, trace| name}
%>
+<p><code>RAILS_ROOT: <%= RAILS_ROOT %></code></p>
+
<div id="traces">
<% names.each do |name| -%>
<%

0 comments on commit 4da2d6c

Please sign in to comment.