mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
RDoc enqueue
This commit is contained in:
parent
08d860079e
commit
fc80f4e532
1 changed files with 9 additions and 1 deletions
|
@ -2,8 +2,16 @@ require 'active_job/parameters'
|
|||
|
||||
module ActiveJob
|
||||
module Enqueuing
|
||||
##
|
||||
# Push a job onto the queue. The arguments must be legal JSON types
|
||||
# (string, int, float, nil, true, false, hash or array) or
|
||||
# ActiveModel::GlobalIdentication instances. Arbitrary Ruby objects
|
||||
# are not supported.
|
||||
#
|
||||
# The return value is adapter-specific and may change in a future
|
||||
# ActiveJob release.
|
||||
def enqueue(*args)
|
||||
queue_adapter.queue self, *Parameters.serialize(args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue