This project is archived and is in readonly mode.
autosave for has_one does not work properly with primary_key option
-
ransom-briggs (at uiowa)
Adding a test for setting the foreign key as well
-
Eloy Duran
- State changed from new to verified
- Milestone changed from 2.x to 2.3.4
I have verified and fixed this on my branch of 2-3-stable, which Micheal will look at and merge in before 2.3.4.
http://github.com/alloy/rails/commit/e5de99082a7d151a70e8d48b96471f...
Thanks!
-
Repository
- State changed from verified to resolved
(from [a070873771ebede9097735f07fc40720dce89c46]) Fix has_one with foreign_key and primary_key association bug which caused the associated object being lost when saving the owner. [#1756 has_one with :foreign_key & :primary_key bug state:resolved]
Mixed in a bit from patch by ransom-briggs. [#2813 autosave for has_one does not work properly with primary_key option state:resolved]
Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/a070873771ebede9097735f07fc407... -
Repository
(from [c01be9de322ba846923340e41e69821d01541610]) Fix has_one with foreign_key and primary_key association bug which caused the associated object being lost when saving the owner. [#1756 has_one with :foreign_key & :primary_key bug state:resolved]
Mixed in a bit from patch by ransom-briggs. [#2813 autosave for has_one does not work properly with primary_key option state:resolved]
Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/c01be9de322ba846923340e41e6982...
