Displaying 1 result from an estimated 1 matches for "avg_cach".
Did you mean:
avg_cache
2006 Mar 08
0
How to add something similar to :counter_cache - :avg_cache
...tes''.
In both states, and counties, there''s a column named ''schools_total''.
I don''t use Rails built in counter cache because schools don''t belong
directly to states.
So I want to implement two features. Inside counties:
counter_cache :schools
avg_cache :schools
Inside states:
counter_cache :schools, :through => counties
avg_cache :schools, :through => counties
The first case is straightforward, but on the second case, the
"caches" would need to get updated whenever the counties table is
modified (apart from when the schools ta...