This project is archived and is in readonly mode.

Changeset [3103296a61709e808aa89c3d37cf22bcdbc5a675] by Jon Leighton

January 4th, 2011 @ 12:24 AM

Let AssociationCollection#find use #scoped to do its finding. Note that I am removing test_polymorphic_has_many_going_through_join_model_with_disabled_include, since this specifies different behaviour for an association than for a regular scope. It seems reasonable to expect scopes and association proxies to behave in roughly the same way rather than having subtle differences.
https://github.com/rails/rails/commit/3103296a61709e808aa89c3d37cf2...

Committed by Jon Leighton

  • M activerecord/lib/active_record/associations/association_collection.rb
  • M activerecord/lib/active_record/associations/association_proxy.rb
  • M activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
  • M activerecord/lib/active_record/associations/has_many_association.rb
  • M activerecord/lib/active_record/associations/has_many_through_association.rb
  • M activerecord/lib/active_record/associations/through_association.rb
  • M activerecord/lib/active_record/nested_attributes.rb
  • M activerecord/lib/active_record/relation/spawn_methods.rb
  • M activerecord/test/cases/associations/join_model_test.rb
  • M activerecord/test/cases/readonly_test.rb
  • M activerecord/test/cases/relations_test.rb
  • M activerecord/test/models/comment.rb
  • M activerecord/test/models/post.rb
  • M activerecord/test/models/project.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>