Permalink
Browse files

Update documentation for CollectionProxy

  • Loading branch information...
1 parent 079eed8 commit 38886f3ed11d182a0b2ce97d8aa41e961c3dd43b @marcandre marcandre committed Sep 12, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -18,14 +18,8 @@ module Associations
# <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,
#

0 comments on commit 38886f3

Please sign in to comment.