From 2c871ebc6448fe1bf1c068f1c6b92d9311eb2069 Mon Sep 17 00:00:00 2001
From: Rune Philosof <rune.git@philosof.dk>
Date: Mon, 1 Oct 2018 11:49:07 +0200
Subject: Make it easier to find abort documentation

Make sure how to abort is documented on https://api.rubyonrails.org/classes/ActiveSupport/Callbacks.html
---
 activesupport/lib/active_support/callbacks.rb | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'activesupport/lib')

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
-- 
cgit v1.2.3