This project is archived and is in readonly mode.

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

Committed by Luciano G Panaro

  • 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

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>