From fc80f4e53256235a2b1a40965f4679e5abccc907 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Mon, 19 May 2014 13:13:40 -0700 Subject: RDoc enqueue --- lib/active_job/enqueuing.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3