Permalink
Browse files

Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent e0332f5 commit a7aa26906c31ad5ca3069e390085c1089c24311c @seckar seckar committed Oct 27, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/templates/rescues/_trace.rhtml
View
@@ -1,5 +1,7 @@
*SVN*
+* Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces [Nicholas Seckar]
+
* Remove ARStore session fingerprinting. [Nicholas Seckar]
* Fix obscure bug in ARStore. [Nicholas Seckar]
@@ -5,7 +5,7 @@
["Full Trace", @exception.clean_backtrace]
]
if defined?(RAILS_ROOT)
- traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } }
+ traces.each { |name, trace| trace.map! { |p| p.gsub(/^(?:\.\/)?#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } }
end
names = traces.collect {|name, trace| name}
%>

0 comments on commit a7aa269

Please sign in to comment.