Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Changeset [c01be9de322ba846923340e41e69821d01541610] by Graeme Porteous

Revision c01be9de322ba846923340e41e69821d01541610, committed by Graeme Porteous · September 12th, 2009 @ 03:03 PM

Fix has_one with foreign_key and primary_key association bug which caused the associated object being lost when saving the owner. [#1756 state:resolved]

Mixed in a bit from patch by ransom-briggs. [#2813 state:resolved]

Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/c01be9de322ba846923340e41e6982...

6 changed files

  • M activerecord/lib/active_record/autosave_association.rb
  • M activerecord/test/cases/associations/has_one_associations_test.rb
  • M activerecord/test/cases/reflection_test.rb
  • M activerecord/test/fixtures/accounts.yml
  • M activerecord/test/models/company.rb
  • M activerecord/test/schema/schema.rb