This project is archived and is in readonly mode.
Changeset [3103296a61709e808aa89c3d37cf22bcdbc5a675] by Jon Leighton
Revision 3103296a61709e808aa89c3d37cf22bcdbc5a675,
committed 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...
14 changed files
-
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