Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean trailing / after rails root from backtraces

  • Loading branch information...
commit 724151d8814fe1ff2351e8c70b0fb02512666e96 1 parent feb807d
Jeremy Kemper jeremy authored wycats committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/backtrace_cleaner.rb
2  railties/lib/rails/backtrace_cleaner.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.