From de17e7de8299f67e01c2e851afd97aa6e876102a Mon Sep 17 00:00:00 2001 From: Simon Menke Date: Tue, 13 Dec 2011 10:10:12 +0100 Subject: [PATCH] Make sure #index gets a String. Fixes #20 --- lib/rack/bug/filtered_backtrace.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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