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 [592085be83ed1b8ff0065a92490e54fcb1a8bc87] by Murray Steele

Revision 592085be83ed1b8ff0065a92490e54fcb1a8bc87, committed by Murray Steele · December 28th, 2009 @ 01:20 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/592085be83ed1b8ff0065a92490e54...

2 changed files

  • M activerecord/lib/active_record/associations/has_one_association.rb
  • M activerecord/test/cases/associations/inverse_associations_test.rb