diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 20:34:46 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-07-06 20:34:46 -0600 |
commit | 0e7744e55e8528c9fc3b88e98d5e5cdd29651eb0 (patch) | |
tree | b7219019eeacf9362ff95481282f78eee7def80c /activesupport | |
parent | 2f716694f20cd19464029513fb59440fd9000840 (diff) | |
parent | b64d887028effe6c602cdd200e89e5b1600c8cbb (diff) | |
download | rails-0e7744e55e8528c9fc3b88e98d5e5cdd29651eb0.tar.gz rails-0e7744e55e8528c9fc3b88e98d5e5cdd29651eb0.tar.bz2 rails-0e7744e55e8528c9fc3b88e98d5e5cdd29651eb0.zip |
Merge pull request #16075 from nickpellant/master
Fix ActiveSupport::Callbacks #set_callback docs.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index cc007bd27e..cd467e13f6 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -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 |