Skip to content

Commit

Permalink
Merge pull request #12629 from Peeja/has_many-pets-typo
Browse files Browse the repository at this point in the history
Fix typo: `has_many :pets`, not `pets :has_many`.

[ci skip]
  • Loading branch information
guilleiguaran authored and rafaelfranca committed Oct 24, 2013
1 parent 7b2f64f commit 961f00a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ def create!(attributes = {}, &block)
# so method calls may be chained. # so method calls may be chained.
# #
# class Person < ActiveRecord::Base # class Person < ActiveRecord::Base
# pets :has_many # has_many :pets
# end # end
# #
# person.pets.size # => 0 # person.pets.size # => 0
Expand Down

0 comments on commit 961f00a

Please sign in to comment.