提交 0e7744e5 编写于 作者: S Sean Griffin

Merge pull request #16075 from nickpellant/master

Fix ActiveSupport::Callbacks #set_callback docs.
......@@ -566,7 +566,7 @@ def __update_callbacks(name) #:nodoc:
#
# set_callback :save, :before, :before_meth
# set_callback :save, :after, :after_meth, if: :condition
# set_callback :save, :around, ->(r, &block) { stuff; result = block.call; stuff }
# set_callback :save, :around, ->(r, block) { stuff; result = block.call; stuff }
#
# The second arguments indicates whether the callback is to be run +:before+,
# +:after+, or +:around+ the event. If omitted, +:before+ is assumed. This
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册