Methods
Constants
ERB_METHOD_SIG = /:in `_run_erb_.*/
RAILS_GEMS = %w( actionpack activerecord actionmailer activesupport activeresource rails )
VENDOR_DIRS = %w( vendor/rails )
SERVER_DIRS = %w( lib/mongrel bin/mongrel lib/passenger bin/passenger-spawn-server lib/rack )
RAILS_NOISE = %w( script/server )
RUBY_NOISE = %w( rubygems/custom_require benchmark.rb )
ALL_NOISE = VENDOR_DIRS + SERVER_DIRS + RAILS_NOISE + RUBY_NOISE
Public Class methods
new()
    # File railties/lib/rails/backtrace_cleaner.rb, line 16
16:     def initialize
17:       super
18:       add_filter   { |line| line.sub("#{RAILS_ROOT}/", '') }
19:       add_filter   { |line| line.sub(ERB_METHOD_SIG, '') }
20:       add_filter   { |line| line.sub('./', '/') } # for tests
21: 
22:       add_gem_filters
23: 
24:       add_silencer { |line| ALL_NOISE.any? { |dir| line.include?(dir) } }
25:       add_silencer { |line| RAILS_GEMS.any? { |gem| line =~ /^#{gem} / } }
26:       add_silencer { |line| line =~ %r(vendor/plugins/[^\/]+/lib) }
27:     end