aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-17 23:25:27 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-17 23:25:27 -0500
commitc0c0ef59921a4a8795cd20348afc243cccc4821e (patch)
treefe0e20bbc265f5252aa545c809b49de55da6a9fc /activerecord
parente66c0fc04967a122cfec656e5473a57ab0223183 (diff)
downloadrails-c0c0ef59921a4a8795cd20348afc243cccc4821e.tar.gz
rails-c0c0ef59921a4a8795cd20348afc243cccc4821e.tar.bz2
rails-c0c0ef59921a4a8795cd20348afc243cccc4821e.zip
add more explanation to CollectionAssociation docs
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_association.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb
index c4ac2c9f77..11608a8ec1 100644
--- a/activerecord/lib/active_record/associations/collection_association.rb
+++ b/activerecord/lib/active_record/associations/collection_association.rb
@@ -11,6 +11,10 @@ module ActiveRecord
# HasManyAssociation => has_many
# HasManyThroughAssociation + ThroughAssociation => has_many :through
#
+ # CollectionAssociation class provides common methods to the collections
+ # defined by +has_and_belongs_to_many+, +has_many+ and +has_many+ with
+ # +:through+ association option.
+ #
# You need to be careful with assumptions regarding the target: The proxy
# does not fetch records from the database until it needs them, but new
# ones created with +build+ are added to the target. So, the target may be