Permalink
Browse files

Clean trailing / after rails root from backtraces

  • Loading branch information...
jeremy committed Dec 30, 2008
1 parent d961592 commit 2f9edde142a15452eb088b8b4b2a38272dde2ba5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 2f9edde

Please sign in to comment.