diff --git a/lib/rack/bug/filtered_backtrace.rb b/lib/rack/bug/filtered_backtrace.rb index 573b4e0..b02ceac 100644 --- a/lib/rack/bug/filtered_backtrace.rb +++ b/lib/rack/bug/filtered_backtrace.rb @@ -13,7 +13,7 @@ def has_backtrace? def filtered_backtrace @filtered_backtrace ||= @backtrace.map{|l| l.to_s.strip }.select do |line| root_for_backtrace_filtering.nil? || - (line.index(root_for_backtrace_filtering) == 0) && !(line.index(root_for_backtrace_filtering("vendor")) == 0) + (line.index(root_for_backtrace_filtering.to_s) == 0) && !(line.index(root_for_backtrace_filtering("vendor").to_s) == 0) end end