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.

This project is archived and is in readonly mode.

Changeset [a070873771ebede9097735f07fc40720dce89c46] by Graeme Porteous

Revision a070873771ebede9097735f07fc40720dce89c46, committed by Graeme Porteous · September 12th, 2009 @ 12:43 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/a070873771ebede9097735f07fc407...

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