aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2017-05-13 13:56:37 +0200
committerdixpac <dino.onex@gmail.com>2017-05-21 18:45:59 +0200
commit4f3955657736796664aa8d6f6d149ef9b213b058 (patch)
treed9122eff4d99a7e3e3f40a374bb19402da2ca578 /activejob/lib
parent23aa0a2bb551717f153ac75f24c017c43ab853f2 (diff)
downloadrails-4f3955657736796664aa8d6f6d149ef9b213b058.tar.gz
rails-4f3955657736796664aa8d6f6d149ef9b213b058.tar.bz2
rails-4f3955657736796664aa8d6f6d149ef9b213b058.zip
Improving docs for callbacks execution order [ci skip]
When define callbacks latest definition on the same callback/method overwrites previous ones.
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/callbacks.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activejob/lib/active_job/callbacks.rb b/activejob/lib/active_job/callbacks.rb
index d5b17de8b5..9aebc880a5 100644
--- a/activejob/lib/active_job/callbacks.rb
+++ b/activejob/lib/active_job/callbacks.rb
@@ -4,7 +4,7 @@ module ActiveJob
# = Active Job Callbacks
#
# Active Job provides hooks during the life cycle of a job. Callbacks allow you
- # to trigger logic during the life cycle of a job. Available callbacks are:
+ # to trigger logic during this cycle. Available callbacks are:
#
# * <tt>before_enqueue</tt>
# * <tt>around_enqueue</tt>
@@ -13,6 +13,8 @@ module ActiveJob
# * <tt>around_perform</tt>
# * <tt>after_perform</tt>
#
+ # NOTE: Calling the same callback multiple times will overwrite previous callback definitions.
+ #
module Callbacks
extend ActiveSupport::Concern
include ActiveSupport::Callbacks