I’ve got a question about counter cache; here’s my setup:
I have 3 model classes, A, B, and C.
A has many C.
B has many C.
C belongs to both A and B.
Now I’d like to keep counters of C in both A and B for performance
According to the rails book, this doesn’t seem to be possible, as the
feature requires changes to be made through the object that maintains
collection (either A or B). So my question is, what’s the best way to
this? Has anybody solved this issue before?