Browse files

Clean trailing / after rails root from backtraces

  • Loading branch information...
1 parent feb807d commit 724151d8814fe1ff2351e8c70b0fb02512666e96 @jeremy jeremy committed with wycats Dec 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/backtrace_cleaner.rb
View
2 railties/lib/rails/backtrace_cleaner.rb
@@ -15,7 +15,7 @@ class BacktraceCleaner < ActiveSupport::BacktraceCleaner
def initialize
super
- add_filter { |line| line.sub(RAILS_ROOT, '') }
+ add_filter { |line| line.sub("#{RAILS_ROOT}/", '') }
add_filter { |line| line.sub(ERB_METHOD_SIG, '') }
add_filter { |line| line.sub('./', '/') } # for tests
add_filter { |line| line.sub(/(#{GEMS_DIR})\/gems\/([a-z]+)-([0-9.]+)\/(.*)/, '\2 (\3) \4')} # http://gist.github.com/30430

0 comments on commit 724151d

Please sign in to comment.