This project is archived and is in readonly mode.

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

Committed by Murray Steele

  • M activerecord/lib/active_record/associations/has_one_association.rb
  • M activerecord/test/cases/associations/inverse_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>