• S
    Deprecate automatic counter caches on has_many :through · d730e374
    Sean Griffin 提交于
    Reliant on https://github.com/rails/rails/pull/15747 but pulled to a
    separate PR to reduce noise. `has_many :through` associations have the
    undocumented behavior of automatically detecting counter caches.
    However, the way in which it does so is inconsistent with counter caches
    everywhere else, and doesn't actually work consistently.
    
    As with normal `has_many` associations, the user should specify the
    counter cache on the `belongs_to`, if they'd like it updated.
    d730e374
finder_test.rb 36.3 KB