Repository navigation
v0.0.1
Released to RubyGems on 2011-05-04.
- Initial release:
define_counter_cachedefines a counter on a model (stored in a column of that name, or in a polymorphiccounterstable ascountable/key/valuewhen no column exists) and anupdate_<column>method that recalculates it from a block;update_counter_cacheaddsafter_saveandafter_destroycallbacks that recalculate the counter on the associated record (and on the old one when the foreign key changes), with an optional:if.
Full changelog: https://github.com/cedric/custom_counter_cache/commits/v0.0.1