noosfero | statistics-block: add products counter (fcf765cf)

Daniela Feitosa gitlab at gitlab.com
Tue Feb 10 12:41:01 BRST 2015


New comment for Commit fcf765cf

https://gitlab.com/noosfero/noosfero/commit/fcf765cfd4de3aba2d77c17a5e5a0ebdc754908e#note_848820


Author: Daniela Feitosa

Instead of comparing with string "t", the attributes should be compared with boolean true, like:
```
owner.products.where("profiles.enabled = true and profiles.visible = true").count
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150210/a2071b5e/attachment-0001.html>


More information about the Noosfero-dev mailing list