[openstreetmap/openstreetmap-website] Users with hidden diary entries have the hidden entries included within their diary count (#2274)
Tom Hughes
notifications at github.com
Sat Jun 22 23:50:22 UTC 2019
Yes I just checked and counter caches don't seem to have any way to specify extra conditions - they just count the number of records of one type that are associated with a record of a different type.
So there is no way to limit it to visible records only.
There are a few third party gems that can do it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2274#issuecomment-504706761
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190622/27d15ea0/attachment.html>
More information about the rails-dev
mailing list