diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-10-24 08:01:08 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-10-24 08:01:08 -0700 |
commit | 3e5bb8693ac8583e32f7080db62fb23a280205cf (patch) | |
tree | 03e83d1088fe96c0f83e9a2a86bc5c16ca828573 /activerecord | |
parent | 80e90b0bd0b0cd50a186e314034d68182c045765 (diff) | |
parent | e7461500e7c77444ea58ee3fc78c143c6dd8e96f (diff) | |
download | rails-3e5bb8693ac8583e32f7080db62fb23a280205cf.tar.gz rails-3e5bb8693ac8583e32f7080db62fb23a280205cf.tar.bz2 rails-3e5bb8693ac8583e32f7080db62fb23a280205cf.zip |
Merge pull request #12629 from Peeja/has_many-pets-typo
Fix typo: `has_many :pets`, not `pets :has_many`.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 0b6cdf5217..2e70a07962 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -281,7 +281,7 @@ module ActiveRecord # so method calls may be chained. # # class Person < ActiveRecord::Base - # pets :has_many + # has_many :pets # end # # person.pets.size # => 0 |