1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Nicholas Seckar 2005-10-27 17:09:00 +00:00
parent e0332f59e4
commit a7aa26906c
2 changed files with 3 additions and 1 deletions

View file

@ -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]

View file

@ -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}
%>