Handle MySQL/Postgres boolean differences.
This commit is contained in:
parent
5449cf4adc
commit
a68b8651d5
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue