Skip to content

Commit

Permalink
Make sure #index gets a String.
Browse files Browse the repository at this point in the history
  • Loading branch information
fd committed Dec 13, 2011
1 parent de26ff1 commit de17e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/bug/filtered_backtrace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit de17e7d

Please sign in to comment.