This project is archived and is in readonly mode.
Changeset [6c8c85bc1eaf1639ea0df5f356e7105c74d128b2] by Murray Steele
Revision 6c8c85bc1eaf1639ea0df5f356e7105c74d128b2,
committed by Murray Steele
· December 28th, 2009 @ 02:12 PM
Add more tests for the various ways we can assign objects to associations. [#3513 state:resolved]
Get rid of a duplicate set_inverse_instance call if you use new_record(true) (e.g. you want to replace the existing instance).
Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/6c8c85bc1eaf1639ea0df5f356e710...
2 changed files
-
M
activerecord/lib/active_record/associations/has_one_association.rb -
M
activerecord/test/cases/associations/inverse_associations_test.rb