diff options
author | David Peter <david.a.peter@gmail.com> | 2012-01-16 18:06:14 -0800 |
---|---|---|
committer | David Peter <david.a.peter@gmail.com> | 2012-01-16 19:06:45 -0800 |
commit | ee013a503db125b8be54daec7096e2d26bb6228c (patch) | |
tree | ccb096e2f9fe053ffe1538b9276c6632973abda8 /activerecord/lib/active_record/session_store.rb | |
parent | 21afd9b96d70d1e2b1cffdfb60f7ec64ab240472 (diff) | |
download | rails-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 'activerecord/lib/active_record/session_store.rb')
0 files changed, 0 insertions, 0 deletions