Permalink
Browse files

Merge pull request #12629 from Peeja/has_many-pets-typo

Fix typo: `has_many :pets`, not `pets :has_many`.

[ci skip]
  • Loading branch information...
1 parent 7b2f64f commit 961f00a4ba117d998cac9f3d117c7e39c19fb890 @guilleiguaran guilleiguaran committed with rafaelfranca Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/collection_proxy.rb
View
2 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -282,7 +282,7 @@ def create!(attributes = {}, &block)
# so method calls may be chained.
#
# class Person < ActiveRecord::Base
- # pets :has_many
+ # has_many :pets
# end
#
# person.pets.size # => 0

0 comments on commit 961f00a

Please sign in to comment.