Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8540: cleaner_template_backtraces.rb

File cleaner_template_backtraces.rb, 0.6 kB (added by tpope, 2 years ago)
Line 
1 Index: lib/action_view/template_error.rb
2 ===================================================================
3 --- lib/action_view/template_error.rb   (revision 6916)
4 +++ lib/action_view/template_error.rb   (working copy)
5 @@ -98,5 +98,5 @@
6  
7  if defined?(Exception::TraceSubstitutions)
8    Exception::TraceSubstitutions << [/:in\s+`_run_(html|xml).*'\s*$/, '']
9 -  Exception::TraceSubstitutions << [%r{^\s*#{Regexp.escape RAILS_ROOT}}, '#{RAILS_ROOT}'] if defined?(RAILS_ROOT)
10 +  Exception::TraceSubstitutions << [%r{^\s*#{Regexp.escape RAILS_ROOT}/}, ''] if defined?(RAILS_ROOT)
11  end