提交 b131978f 编写于 作者: Z Zachary Scott

Merge pull request #16501 from tomkadwill/update_delete_to_new_style

[ci skip] updated 'where' in association documention to new style syntax
......@@ -1209,7 +1209,7 @@ module ClassMethods
# Option examples:
# has_many :comments, -> { order "posted_on" }
# has_many :comments, -> { includes :author }
# has_many :people, -> { where("deleted = 0").order("name") }, class_name: "Person"
# has_many :people, -> { where(deleted: false).order(:name) }, class_name: "Person"
# has_many :tracks, -> { order "position" }, dependent: :destroy
# has_many :comments, dependent: :nullify
# has_many :tags, as: :taggable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册