提交 cb4d18d3 编写于 作者: V Vipul A M 提交者: GitHub

Merge pull request #25342 from Edouard-chin/callbacks-wrong-method-name

[ci skip] `define_model_callbacks` only exist in active model
......@@ -736,8 +736,13 @@ def reset_callbacks(name)
#
# would call <tt>Audit#save</tt>.
#
# NOTE: +method_name+ passed to `define_model_callbacks` must not end with
# ===== Notes
#
# +names+ passed to `define_callbacks` must not end with
# `!`, `?` or `=`.
#
# Calling `define_callbacks` multiple times with the same +names+ will
# overwrite previous callbacks registered with `set_callback`.
def define_callbacks(*names)
options = names.extract_options!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册