diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-12-22 20:57:41 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-23 15:19:18 -0800 |
commit | 2d9626fc74c2d57f90c856c37e5967bbe6651bd8 (patch) | |
tree | 067d9d8015680e1df6308aeff4fe9bf3e8fb33e0 /activerecord/test/cases/associations/has_many_through_associations_test.rb | |
parent | 3f17ed407c5d61bc01fd59776205486c2350f36e (diff) | |
download | rails-2d9626fc74c2d57f90c856c37e5967bbe6651bd8.tar.gz rails-2d9626fc74c2d57f90c856c37e5967bbe6651bd8.tar.bz2 rails-2d9626fc74c2d57f90c856c37e5967bbe6651bd8.zip |
Improved strategy for updating a belongs_to association when the foreign key changes. Rather than resetting each affected association when the foreign key changes, we should lazily check for 'staleness' (where fk does not match target id) when the association is accessed.
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
0 files changed, 0 insertions, 0 deletions