]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/_trace_header.rhtml
Fixed indeterminacy in test.
[rails.git] / app / views / trace / _trace_header.rhtml
index f739d90532c7a46a5a995a4a7e2d931887caf416..cab6f7124504320d1eb19b8920bac3971b980e5b 100644 (file)
@@ -17,9 +17,9 @@
   <% end %>
 </p>
 
-<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %>
+<% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %>
   <p>
-    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.
   </p>