Skip to content

Commit

Permalink
Clean trailing / after rails root from backtraces
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy authored and wycats committed Jan 1, 2009
1 parent feb807d commit 724151d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/backtrace_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 724151d

Please sign in to comment.