Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7622 from marcandre/doc

Update documentation for CollectionProxy [ci skip]
  • Loading branch information...
commit 0f228b420e26584e26702935135a4b099df85696 2 parents 85d8b22 + 38886f3
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 activerecord/lib/active_record/associations/collection_proxy.rb
View
10 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,
#
Please sign in to comment.
Something went wrong with that request. Please try again.