aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMike Perham <mperham@gmail.com>2014-05-19 13:13:40 -0700
committerMike Perham <mperham@gmail.com>2014-05-19 13:13:40 -0700
commitfc80f4e53256235a2b1a40965f4679e5abccc907 (patch)
tree542ec4d5a752f99d48abe6ffd36e926bcc9c2b00 /lib
parent08d860079e693325e9031cf47019d9371499652b (diff)
downloadrails-fc80f4e53256235a2b1a40965f4679e5abccc907.tar.gz
rails-fc80f4e53256235a2b1a40965f4679e5abccc907.tar.bz2
rails-fc80f4e53256235a2b1a40965f4679e5abccc907.zip
RDoc enqueue
Diffstat (limited to 'lib')
-rw-r--r--lib/active_job/enqueuing.rb10
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