diff options
author | mo khan <mo@mokhan.ca> | 2014-09-26 11:10:06 -0600 |
---|---|---|
committer | mo khan <mo@mokhan.ca> | 2014-10-02 10:57:30 -0600 |
commit | bc6421c9eff09fee31d4947d2cc6ddc580314de0 (patch) | |
tree | b60143567122b7b368886baa916df38d1a23da10 /activejob/lib/active_job/queue_name.rb | |
parent | 7b740f31cc6f88fe20a51eb7da1468082e6fdb5a (diff) | |
download | rails-bc6421c9eff09fee31d4947d2cc6ddc580314de0.tar.gz rails-bc6421c9eff09fee31d4947d2cc6ddc580314de0.tar.bz2 rails-bc6421c9eff09fee31d4947d2cc6ddc580314de0.zip |
Add documentation on Active Job.
This adds documentation for the Active Job API. It includes
documentation on how to configure the queue_adapter, and how to create
new jobs. It adds links to the various other sections of the Active Job
documentation.
Diffstat (limited to 'activejob/lib/active_job/queue_name.rb')
-rw-r--r-- | activejob/lib/active_job/queue_name.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activejob/lib/active_job/queue_name.rb b/activejob/lib/active_job/queue_name.rb index 45acb71605..d6ac01a921 100644 --- a/activejob/lib/active_job/queue_name.rb +++ b/activejob/lib/active_job/queue_name.rb @@ -6,6 +6,15 @@ module ActiveJob mattr_accessor(:queue_name_prefix) mattr_accessor(:default_queue_name) { "default" } + # Specifies the name of the queue to process the job on. + # + # class PublishToFeedJob < ActiveJob::Base + # queue_as :feeds + # + # def perform(post) + # post.to_feed! + # end + # end def queue_as(part_name=nil, &block) if block_given? self.queue_name = block |