Handle MySQL/Postgres boolean differences.

This commit is contained in:
Tom Hughes 2009-04-16 21:16:09 +00:00
parent 5449cf4adc
commit a68b8651d5

View file

@ -17,9 +17,9 @@
<% end %> <% end %>
</p> </p>
<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %> <% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %>
<p> <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 waiting for upload. Please consider waiting for these to finish before
uploading any more, so as not to block the queue for other users. uploading any more, so as not to block the queue for other users.
</p> </p>