diff options
author | Tim Wade <hello@timjwade.com> | 2016-05-27 15:39:30 -0700 |
---|---|---|
committer | Tim Wade <hello@timjwade.com> | 2016-05-27 15:39:30 -0700 |
commit | ad9882369ab7ab74b7eb6b13b9cc47db6ed6c168 (patch) | |
tree | 1afeddaa5a47df6797ae48ea9fb9222839b78564 /activejob/lib/active_job | |
parent | 9b2a884522ad24091efbff6d82f3f6e299f55529 (diff) | |
download | rails-ad9882369ab7ab74b7eb6b13b9cc47db6ed6c168.tar.gz rails-ad9882369ab7ab74b7eb6b13b9cc47db6ed6c168.tar.bz2 rails-ad9882369ab7ab74b7eb6b13b9cc47db6ed6c168.zip |
[ci skip] Reword doc for around_enqueue callback
Taken literally, the documentation suggests that the callback gets
called twice (before and after enqueueing). By wording it similarly to
that of around_perform this confusion is avoided.
Diffstat (limited to 'activejob/lib/active_job')
-rw-r--r-- | activejob/lib/active_job/callbacks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/callbacks.rb b/activejob/lib/active_job/callbacks.rb index a6591c6a05..b206522a60 100644 --- a/activejob/lib/active_job/callbacks.rb +++ b/activejob/lib/active_job/callbacks.rb @@ -126,8 +126,8 @@ module ActiveJob set_callback(:enqueue, :after, *filters, &blk) end - # Defines a callback that will get called before and after the - # job is enqueued. + # Defines a callback that will get called around the enqueueing + # of the job. # # class VideoProcessJob < ActiveJob::Base # queue_as :default |