diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-12 12:02:08 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-12 12:02:08 -0700 |
commit | 0f228b420e26584e26702935135a4b099df85696 (patch) | |
tree | 511cbf8175ab16269e0e4c446d4927fcfe1c6a90 /activerecord/lib | |
parent | 85d8b22a713a4bfdb299725b6fbb9cfac7d73b00 (diff) | |
parent | 38886f3ed11d182a0b2ce97d8aa41e961c3dd43b (diff) | |
download | rails-0f228b420e26584e26702935135a4b099df85696.tar.gz rails-0f228b420e26584e26702935135a4b099df85696.tar.bz2 rails-0f228b420e26584e26702935135a4b099df85696.zip |
Merge pull request #7622 from marcandre/doc
Update documentation for CollectionProxy [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 10 |
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, # |