aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/deprecated_counter_cache_on_has_many_through_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate automatic counter caches on has_many :throughSean Griffin2014-06-261-0/+26
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.