mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16075 from nickpellant/master
Fix ActiveSupport::Callbacks #set_callback docs.
This commit is contained in:
commit
0e7744e55e
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ module ActiveSupport
|
|||
#
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue