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 [14a6794a8ef9995c45a86e95c45d315c61087103] by Luciano G Panaro

Revision 14a6794a8ef9995c45a86e95c45d315c61087103, committed by Luciano G Panaro · September 28th, 2009 @ 02:51 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/14a6794a8ef9995c45a86e95c45d31...

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