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 [2e455429427a4078d2888cc39305f951bdf1e643] by Neeraj Singh

Revision 2e455429427a4078d2888cc39305f951bdf1e643, committed 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...

6 changed files

  • 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