Skip to content

v0.0.1

Choose a tag to compare

@cedric cedric released this 01 Oct 13:43
· 208 commits to main since this release

Released to RubyGems on 2011-05-04.

  • Initial release: define_counter_cache defines a counter on a model (stored in a column of that name, or in a polymorphic counters table as countable/key/value when no column exists) and an update_<column> method that recalculates it from a block; update_counter_cache adds after_save and after_destroy callbacks 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