This project is archived and is in readonly mode.

Changeset [a070873771ebede9097735f07fc40720dce89c46] 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...

Committed by Graeme Porteous

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>