提交 3e5bb869 编写于 作者: G Guillermo Iguaran

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

Fix typo: `has_many :pets`, not `pets :has_many`.
......@@ -281,7 +281,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册