[openstreetmap/openstreetmap-website] Users with hidden diary entries have the hidden entries included within their diary count (#2274)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev