This project is archived and is in readonly mode.

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

Committed by pivotal

  • 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

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>