method
has_cached_counter?

Ruby on Rails latest stable (v5.2.3)
-
0 notes -
Class: ActiveRecord::Associations::HasManyAssociation
has_cached_counter?(reflection = reflection())
private
Returns whether a counter cache should be used for this association.
The counter_cache option must be given on either the owner or inverse association, and the column must be present on the owner.