rails/rails — pull request #15754 by sgrif (2014-06-16 16:32:20+00:00)
Title: Deprecate automatic counter caches on has_many :through

Reliant on rails#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.