Skip to content

Commit

Permalink
fixed a tiny issue where it conflicted with the openid gem starts_with?
Browse files Browse the repository at this point in the history
implementation
  • Loading branch information
SamSaffron committed Dec 14, 2009
1 parent 3a0933f commit 16daa41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/rack/bug/panels/sql_panel/query.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ def has_backtrace?

def filtered_backtrace
@filtered_backtrace ||= @backtrace.map { |l| l.to_s.strip }.select do |line|
line.starts_with?(Rails.root) &&
!line.starts_with?(Rails.root.join("vendor"))
# ruby open id gem, uses a version of starts_with that is not compatible with Path
line.starts_with?(Rails.root.to_s) &&
!line.starts_with?(Rails.root.join("vendor").to_s)
end
end
end

end
end
end
end

0 comments on commit 16daa41

Please sign in to comment.