aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Peter <david.a.peter@gmail.com>2012-01-16 18:06:14 -0800
committerDavid Peter <david.a.peter@gmail.com>2012-01-16 19:06:45 -0800
commitee013a503db125b8be54daec7096e2d26bb6228c (patch)
treeccb096e2f9fe053ffe1538b9276c6632973abda8 /activesupport
parent21afd9b96d70d1e2b1cffdfb60f7ec64ab240472 (diff)
downloadrails-ee013a503db125b8be54daec7096e2d26bb6228c.tar.gz
rails-ee013a503db125b8be54daec7096e2d26bb6228c.tar.bz2
rails-ee013a503db125b8be54daec7096e2d26bb6228c.zip
Fix bug where reset_counters resets the wrong counter cache.
If a model belongs_to two associations with the same class, then reset_counters will reset the wrong counter cache. Finding the right reflection should use the foreign_key instead, which should be unique.
Diffstat (limited to 'activesupport')
0 files changed, 0 insertions, 0 deletions