Skip to content
This repository
Browse code

Clean trailing / after rails root from backtraces

  • Loading branch information...
commit 724151d8814fe1ff2351e8c70b0fb02512666e96 1 parent feb807d
Jeremy Kemper jeremy authored wycats committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/lib/rails/backtrace_cleaner.rb
2  railties/lib/rails/backtrace_cleaner.rb
@@ -15,7 +15,7 @@ class BacktraceCleaner < ActiveSupport::BacktraceCleaner
15 15
16 16 def initialize
17 17 super
18   - add_filter { |line| line.sub(RAILS_ROOT, '') }
  18 + add_filter { |line| line.sub("#{RAILS_ROOT}/", '') }
19 19 add_filter { |line| line.sub(ERB_METHOD_SIG, '') }
20 20 add_filter { |line| line.sub('./', '/') } # for tests
21 21 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.
Something went wrong with that request. Please try again.