method
has_cached_counter?
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::Associations::HasManyThroughAssociation
has_cached_counter?(reflection = reflection())
private
Hide source
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 237 def has_cached_counter?(reflection = reflection()) owner.attribute_present?(cached_counter_attribute_name(reflection)) end