提交 cb7f03f0 编写于 作者: R Rafael Mendonça França

Merge pull request #15265 from danielmbarlow/master

Added force_reload to Auto-generated methods doc
......@@ -202,12 +202,13 @@ def association_instance_set(name, association)
# For instance, +attributes+ and +connection+ would be bad choices for association names.
#
# == Auto-generated methods
# See also Instance Public methods below for more details.
#
# === Singular associations (one-to-one)
# | | belongs_to |
# generated methods | belongs_to | :polymorphic | has_one
# ----------------------------------+------------+--------------+---------
# other | X | X | X
# other(force_reload=false) | X | X | X
# other=(other) | X | X | X
# build_other(attributes={}) | X | | X
# create_other(attributes={}) | X | | X
......@@ -217,7 +218,7 @@ def association_instance_set(name, association)
# | | | has_many
# generated methods | habtm | has_many | :through
# ----------------------------------+-------+----------+----------
# others | X | X | X
# others(force_reload=false) | X | X | X
# others=(other,other,...) | X | X | X
# other_ids | X | X | X
# other_ids=(id,id,...) | X | X | X
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册