diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-19 17:20:47 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-19 17:20:47 -0300 |
commit | 179060ad40580905f421f93231f5f8f904d8c858 (patch) | |
tree | 542ec4d5a752f99d48abe6ffd36e926bcc9c2b00 /lib | |
parent | 08d860079e693325e9031cf47019d9371499652b (diff) | |
parent | fc80f4e53256235a2b1a40965f4679e5abccc907 (diff) | |
download | rails-179060ad40580905f421f93231f5f8f904d8c858.tar.gz rails-179060ad40580905f421f93231f5f8f904d8c858.tar.bz2 rails-179060ad40580905f421f93231f5f8f904d8c858.zip |
Merge pull request #32 from mperham/master
RDoc enqueue
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 |