diff options
author | Rune Philosof <rune.git@philosof.dk> | 2018-10-01 11:49:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 11:49:07 +0200 |
commit | 2c871ebc6448fe1bf1c068f1c6b92d9311eb2069 (patch) | |
tree | e62861c2afd80e8832d790da62cdcb8ad85e884a /activesupport | |
parent | 2334fe8ffab7aa67504ae4a6b483f1a914b415bb (diff) | |
download | rails-2c871ebc6448fe1bf1c068f1c6b92d9311eb2069.tar.gz rails-2c871ebc6448fe1bf1c068f1c6b92d9311eb2069.tar.bz2 rails-2c871ebc6448fe1bf1c068f1c6b92d9311eb2069.zip |
Make it easier to find abort documentation
Make sure how to abort is documented on https://api.rubyonrails.org/classes/ActiveSupport/Callbacks.html
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 487fe79f41..d0644a0f7e 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -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 |