diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/active_job/enqueuing.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/active_job/enqueuing.rb b/lib/active_job/enqueuing.rb index 94a9dbf8ab..324385216e 100644 --- a/lib/active_job/enqueuing.rb +++ b/lib/active_job/enqueuing.rb @@ -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
\ No newline at end of file +end |