aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPeter Jaros <peter.a.jaros@gmail.com>2013-10-24 10:58:23 -0400
committerPeter Jaros <peter.a.jaros@gmail.com>2013-10-24 10:58:23 -0400
commite7461500e7c77444ea58ee3fc78c143c6dd8e96f (patch)
tree03e83d1088fe96c0f83e9a2a86bc5c16ca828573 /activerecord
parent80e90b0bd0b0cd50a186e314034d68182c045765 (diff)
downloadrails-e7461500e7c77444ea58ee3fc78c143c6dd8e96f.tar.gz
rails-e7461500e7c77444ea58ee3fc78c143c6dd8e96f.tar.bz2
rails-e7461500e7c77444ea58ee3fc78c143c6dd8e96f.zip
Fix typo: `has_many :pets`, not `pets :has_many`.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
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