aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-09-12 14:54:44 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-09-12 14:54:44 -0400
commit38886f3ed11d182a0b2ce97d8aa41e961c3dd43b (patch)
tree8ad9d5fbabd16d86af05fda408f6690cebb94f93 /activerecord
parent079eed83d9822959a0a4efacc31e912165024a26 (diff)
downloadrails-38886f3ed11d182a0b2ce97d8aa41e961c3dd43b.tar.gz
rails-38886f3ed11d182a0b2ce97d8aa41e961c3dd43b.tar.bz2
rails-38886f3ed11d182a0b2ce97d8aa41e961c3dd43b.zip
Update documentation for CollectionProxy
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index ee8b816ef4..66132b7260 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -18,14 +18,8 @@ module ActiveRecord
# <tt>@owner</tt>, the collection of its posts as <tt>@target</tt>, and
# the <tt>@reflection</tt> object represents a <tt>:has_many</tt> macro.
#
- # This class has most of the basic instance methods removed, and delegates
- # unknown methods to <tt>@target</tt> via <tt>method_missing</tt>. As a
- # corner case, it even removes the +class+ method and that's why you get
- #
- # blog.posts.class # => Array
- #
- # though the object behind <tt>blog.posts</tt> is not an Array, but an
- # ActiveRecord::Associations::HasManyAssociation.
+ # This class delegates unknown methods to <tt>@target</tt> via
+ # <tt>method_missing</tt>.
#
# The <tt>@target</tt> object is not \loaded until needed. For example,
#