diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2018-10-24 11:48:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 11:48:35 -0400 |
commit | eba2ba8d3aacba1e91b521754f988345c1d780c5 (patch) | |
tree | 4766fc26b25ba3b8493198c05f51d765db9e9dcd | |
parent | 46c2a8657969075a55209301cd63cf3b285cd0c4 (diff) | |
parent | 2c871ebc6448fe1bf1c068f1c6b92d9311eb2069 (diff) | |
download | rails-eba2ba8d3aacba1e91b521754f988345c1d780c5.tar.gz rails-eba2ba8d3aacba1e91b521754f988345c1d780c5.tar.bz2 rails-eba2ba8d3aacba1e91b521754f988345c1d780c5.zip |
Merge pull request #34034 from runephilosof/patch-2
Make it easier to find abort documentation
-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 |