This project is archived and is in readonly mode.

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

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>