1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[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.
This commit is contained in:
Tim Wade 2016-05-27 15:39:30 -07:00
parent 9b2a884522
commit ad9882369a
No known key found for this signature in database
GPG key ID: D734FF7619F4129A

View file

@ -126,8 +126,8 @@ module ActiveJob
set_callback(:enqueue, :after, *filters, &blk) set_callback(:enqueue, :after, *filters, &blk)
end end
# Defines a callback that will get called before and after the # Defines a callback that will get called around the enqueueing
# job is enqueued. # of the job.
# #
# class VideoProcessJob < ActiveJob::Base # class VideoProcessJob < ActiveJob::Base
# queue_as :default # queue_as :default