aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-12-30 18:25:44 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-12-30 18:25:44 -0800
commita5004573d8d132fe079242fc082ab4661b0976e9 (patch)
treee25036f7e7a29e947aca6f12c9cf58dea7f96480
parent2e1132fad8fa2ab58476b9ecc30523ed02a43181 (diff)
downloadrails-a5004573d8d132fe079242fc082ab4661b0976e9.tar.gz
rails-a5004573d8d132fe079242fc082ab4661b0976e9.tar.bz2
rails-a5004573d8d132fe079242fc082ab4661b0976e9.zip
Only silence backtrace from plugin lib dirs
-rw-r--r--railties/lib/rails/backtrace_cleaner.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb
index ee67255289..e1b422716d 100644
--- a/railties/lib/rails/backtrace_cleaner.rb
+++ b/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 @@ module Rails
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