mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #513 from BlackBulletIV/patch-1
Modified CollectionAssociation documentation to refer to the new class name
This commit is contained in:
@@ -4,7 +4,7 @@ module ActiveRecord
|
||||
module Associations
|
||||
# = Active Record Association Collection
|
||||
#
|
||||
# AssociationCollection is an abstract class that provides common stuff to
|
||||
# CollectionAssociation is an abstract class that provides common stuff to
|
||||
# ease the implementation of association proxies that represent
|
||||
# collections. See the class hierarchy in AssociationProxy.
|
||||
#
|
||||
|
||||
@@ -462,7 +462,7 @@ class NamedScopeTest < ActiveRecord::TestCase
|
||||
[:destroy_all, :reset, :delete_all].each do |method|
|
||||
before = post.comments.containing_the_letter_e
|
||||
post.association(:comments).send(method)
|
||||
assert before.object_id != post.comments.containing_the_letter_e.object_id, "AssociationCollection##{method} should reset the named scopes cache"
|
||||
assert before.object_id != post.comments.containing_the_letter_e.object_id, "CollectionAssociation##{method} should reset the named scopes cache"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user