From a68b8651d5bbc5af51eefc4759f6e28b75ecedf5 Mon Sep 17 00:00:00 2001
From: Tom Hughes
Date: Thu, 16 Apr 2009 21:16:09 +0000
Subject: [PATCH] Handle MySQL/Postgres boolean differences.
---
app/views/trace/_trace_header.rhtml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml
index f739d9053..cab6f7124 100644
--- a/app/views/trace/_trace_header.rhtml
+++ b/app/views/trace/_trace_header.rhtml
@@ -17,9 +17,9 @@
<% end %>
-<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %>
+<% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %>
- You have <%= @user.traces.count(:conditions => "inserted=0") %> traces
+ You have <%= @user.traces.count(:conditions => ["inserted=?", false]) %> traces
waiting for upload. Please consider waiting for these to finish before
uploading any more, so as not to block the queue for other users.
--
2.39.5