counter_cache_with_conditions

Replacement for ActiveRecord belongs_to :counter_cache with ability to specify conditions.

// repository documentation