提交 5c9cccaf 编写于 作者: K Kasper Timm Hansen

Merge pull request #23387 from mcfiredrill/clarify-touching-callbacks

clarify the touch true option does not trigger after_save/update [ci skip]
......@@ -1593,6 +1593,8 @@ def has_one(name, scope = nil, options = {})
# If true, the associated object will be touched (the updated_at/on attributes set to current time)
# when this record is either saved or destroyed. If you specify a symbol, that attribute
# will be updated with the current time in addition to the updated_at/on attribute.
# Please note that with touching no validation is performed and only the +after_touch+,
# +after_commit+ and +after_rollback+ callbacks are executed.
# [:inverse_of]
# Specifies the name of the #has_one or #has_many association on the associated
# object that is the inverse of this #belongs_to association. Does not work in
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册