rails/rails — pull request #14410 by arthurnn (2014-03-17 17:02:09+00:00)
Title: Fix counter cache when association uses a class_name

The idea of this commits is from
bf28422cbda9068afb900020fa6911afd01963e1, which fixes this problem, but
only on AR 4.1+.

[fixes #14369]

@rafaelfranca , not sure if changelog is needed.
cc @tenderlove