Skip to content
Browse files

Only silence backtrace from plugin lib dirs

  • Loading branch information...
1 parent 658cf55 commit 42b32938d99d8f930e3020659ec0619aa5205c05 @jeremy jeremy committed with wycats Dec 30, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/backtrace_cleaner.rb
View
3 railties/lib/rails/backtrace_cleaner.rb
@@ -2,7 +2,7 @@ module Rails
class BacktraceCleaner < ActiveSupport::BacktraceCleaner
ERB_METHOD_SIG = /:in `_run_erb_.*/
- VENDOR_DIRS = %w( vendor/plugins vendor/gems vendor/rails )
+ VENDOR_DIRS = %w( vendor/gems vendor/rails )
SERVER_DIRS = %w( lib/mongrel bin/mongrel
lib/passenger bin/passenger-spawn-server
lib/rack )
@@ -20,6 +20,7 @@ def initialize
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
add_silencer { |line| ALL_NOISE.any? { |dir| line.include?(dir) } }
+ add_silencer { |line| line =~ %r(vendor/plugins/[^\/]+/lib) }
end
end

0 comments on commit 42b3293

Please sign in to comment.
Something went wrong with that request. Please try again.