0
레일 3.2에서 연결 옵션 counter_cache
이 counter_sql
또는 conditions
과 같은 다른 옵션에 연결되어 있습니까? 예를 들어카운터 캐시가 counter_sql 또는 조건을 존중합니까?
, I가있는 경우 등이 연관 :
class User
has_many :items, :through => :orders
has_many :active_items, :through => :orders
:conditions => 'active = true', :source => :item
class Order
belongs_to :users, :counter_cache => :active_items_count
belongs_to :items
class Item
has_many :users, :through => :orders
윌 대향 캐시 존중 활성 상태? (비활성 항목이 계산되지 않음을 의미) 그리고 무엇에 관한 사용 finder_sql
/counter_sql