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 [9dbde4f5cbd0617ee6cce3e41d41335f9c9ce3fd] by pivotal

Revision 9dbde4f5cbd0617ee6cce3e41d41335f9c9ce3fd, committed by pivotal · August 27th, 2008 @ 10:22 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