From 83ce4c59be3d5f1f1246b46f53370f5f65fd0dc5 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 1 Jun 2007 05:18:21 +0000 Subject: Remove RAILS_ROOT from backtrace paths. Closes #8540. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/template_error.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/template_error.rb b/actionpack/lib/action_view/template_error.rb index 34ed50ae9a..f82cb31846 100644 --- a/actionpack/lib/action_view/template_error.rb +++ b/actionpack/lib/action_view/template_error.rb @@ -98,5 +98,5 @@ end if defined?(Exception::TraceSubstitutions) Exception::TraceSubstitutions << [/:in\s+`_run_(html|xml).*'\s*$/, ''] - Exception::TraceSubstitutions << [%r{^\s*#{Regexp.escape RAILS_ROOT}}, '#{RAILS_ROOT}'] if defined?(RAILS_ROOT) + Exception::TraceSubstitutions << [%r{^\s*#{Regexp.escape RAILS_ROOT}/}, ''] if defined?(RAILS_ROOT) end -- cgit v1.2.3