This project is archived and is in readonly mode.
Changeset [e710902f26a2eed7adb22082067df449b9641d00] by pivotal
Revision e710902f26a2eed7adb22082067df449b9641d00,
committed by pivotal
· August 27th, 2008 @ 10:24 AM
Fix two has_one :through errors
- Set the association target on assignment;
- Reset target to nil on reset, rather than empty array.
Signed-off-by: Michael Koziarski michael@koziarski.com [#895 state:committed] http://github.com/rails/rails/co...
3 changed files
-
M
activerecord/lib/active_record/associations.rb -
M
activerecord/lib/active_record/associations/has_one_through_association.rb -
M
activerecord/test/cases/associations/has_one_through_associations_test.rb