aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-10-24 11:48:35 -0400
committerGitHub <noreply@github.com>2018-10-24 11:48:35 -0400
commiteba2ba8d3aacba1e91b521754f988345c1d780c5 (patch)
tree4766fc26b25ba3b8493198c05f51d765db9e9dcd
parent46c2a8657969075a55209301cd63cf3b285cd0c4 (diff)
parent2c871ebc6448fe1bf1c068f1c6b92d9311eb2069 (diff)
downloadrails-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.rb3
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