Permalink
Browse files

Call #to_s on backtrace lines to avoid explosions when they are Pathn…

…ames
  • Loading branch information...
1 parent 94fb79a commit a619f768e6b35066b385e0284995454ffcdb85ee @brynary brynary committed Apr 24, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/bug/panels/sql_panel/query.rb
@@ -61,7 +61,7 @@ def has_backtrace?
end
def filtered_backtrace
- @filtered_backtrace ||= @backtrace.map { |l| l.strip }.select do |line|
+ @filtered_backtrace ||= @backtrace.map { |l| l.to_s.strip }.select do |line|
line.starts_with?(Rails.root) &&
!line.starts_with?(Rails.root.join("vendor"))
end

0 comments on commit a619f76

Please sign in to comment.