diff options
author | Carl Lerche <carllerche@mac.com> | 2010-02-11 10:29:50 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-02-11 10:29:50 -0800 |
commit | eea28b07cf25d5c79f8edeb8bef5e0483b489425 (patch) | |
tree | 804c4c3b23ba77ddca9711a9870c7223e1bbc41a /railties/lib | |
parent | 2a2d1872e4e6863bb5ad088c0c5b34fd90f3789d (diff) | |
download | rails-eea28b07cf25d5c79f8edeb8bef5e0483b489425.tar.gz rails-eea28b07cf25d5c79f8edeb8bef5e0483b489425.tar.bz2 rails-eea28b07cf25d5c79f8edeb8bef5e0483b489425.zip |
Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.dir and Gem.path now.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/backtrace_cleaner.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb index 40198306f9..14eccd5a6a 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -12,7 +12,6 @@ module Rails add_filter { |line| line.sub('./', '/') } # for tests add_gem_filters - add_bundler_filters add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^#{dir}/ } } end @@ -27,16 +26,6 @@ module Rails } end end - - def add_bundler_filters - return unless defined? Bundler - add_filter { |line| - line.sub(%r{vendor/gems/[^/]+/[^/]+/gems/([^/]+)-([0-9.]+)/(.*)}, '\1 (\2) \3') - } - add_filter { |line| - line.sub(%r{vendor/gems/[^/]+/[^/]+/dirs/([^/]+)/(.*)}, '\1 \2') - } - end end # For installing the BacktraceCleaner in the test/unit |