1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Make it easier to find abort documentation

Make sure how to abort is documented on https://api.rubyonrails.org/classes/ActiveSupport/Callbacks.html
This commit is contained in:
Rune Philosof 2018-10-01 11:49:07 +02:00 committed by GitHub
parent 2334fe8ffa
commit 2c871ebc64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,9 @@ module ActiveSupport
# +ClassMethods.set_callback+), and run the installed callbacks at the
# appropriate times (via +run_callbacks+).
#
# By default callbacks are halted by throwing +:abort+.
# See +ClassMethods.define_callbacks+ for details.
#
# Three kinds of callbacks are supported: before callbacks, run before a
# certain event; after callbacks, run after the event; and around callbacks,
# blocks that surround the event, triggering it when they yield. Callback code