Class: Rails::BacktraceCleaner
- Inherits:
-
Object
- Object
- Rails::BacktraceCleaner
- Defined in:
- lib/rails-footnotes/backtracer.rb
Instance Method Summary collapse
Instance Method Details
#clean(backtrace, kind = :silent) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rails-footnotes/backtracer.rb', line 7 def clean(backtrace, kind = :silent) safe = super.map {|l| l.html_safe} def safe.join(*args) (joined = super).html_safe end safe end |
#replace_filter(index, &block) ⇒ Object
3 4 5 |
# File 'lib/rails-footnotes/backtracer.rb', line 3 def replace_filter(index, &block) @filters[index] = block end |