提交 006225b0 编写于 作者: T Tom Kadwill

[ci skip] updated 'where' in association documention to new style syntax

上级 9424b48d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册