This project is archived and is in readonly mode.

Changeset [2e455429427a4078d2888cc39305f951bdf1e643] by Neeraj Singh

August 19th, 2010 @ 06:52 PM

While creating a new record using has_many create method default scope of child should be respected.

author.posts.create should take into account default_scope
defined on post.

[#3939: state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/2e455429427a4078d2888cc39305f9...

Committed by Neeraj Singh

  • A activerecord/test/models/bulb.rb
  • M activerecord/lib/active_record/associations/association_collection.rb
  • M activerecord/lib/active_record/relation.rb
  • M activerecord/test/cases/associations/has_many_associations_test.rb
  • M activerecord/test/models/car.rb
  • M activerecord/test/schema/schema.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>