Sha256: 452629882f23bf136e045bbad3a4e728829f3aa780aa1c328b7c8662d05070fc
Contents?: true
Size: 710 Bytes
Versions: 12
Compression:
Stored size: 710 Bytes
Contents
Exception.metaclass_eval do attr_accessor :filters end Exception.filters = [] Exception.filters = %w( /gems/haml /gems/tilt /gems/facets /gems/rack /gems/mongrel /gems/rspec /gems/thin /timeout.rb /bin/spec lib/fake_gem rubygems/custom_require /rad/template /rad/template /face/view_builder /face/view_helper /rad/_support /monitor /synchronize /class_loader /micon internal:lib/ ) # Uncomment this line to disable filtering # Exception.filters = [] Exception.class_eval do alias_method :set_backtrace_without_filter, :set_backtrace def set_backtrace array set_backtrace_without_filter array.sfilter(::Exception.filters) end end
Version data entries
12 entries across 12 versions & 1 rubygems