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 %>
|
||||
</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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue