This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# has_counter_cache_on is a simple ActiveRecord extension | |
# which allows you to have multiple counters for a single | |
# association, counted when simple conditions are met | |
# | |
# The implementation is adapted from the current | |
# add_counter_cache_callbacks code in Rails. | |
# | |
# Example: | |
# | |
# class Submission < ActiveRecord::Base |