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 [4168f876238982d0d584006f50188071928a8b7f] by Luciano G Panaro

Revision 4168f876238982d0d584006f50188071928a8b7f, committed by Luciano G Panaro · September 28th, 2009 @ 02:50 AM

Make has_one with :conditions hash scope build or creation of the associated object with those conditions

Signed-off-by: Michael Koziarski michael@koziarski.com
[#3088 state:committed] http://github.com/rails/rails/commit/4168f876238982d0d584006f501880...

5 changed files

  • M activerecord/lib/active_record/associations.rb
  • M activerecord/lib/active_record/associations/has_one_association.rb
  • M activerecord/test/cases/associations/has_one_associations_test.rb
  • M activerecord/test/cases/reflection_test.rb
  • M activerecord/test/models/company.rb