aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2015-01-14 11:47:24 +0530
committerVipul A M <vipulnsward@gmail.com>2015-01-14 11:47:24 +0530
commit34dc028e75137707c46f81e1db942dad6660fb31 (patch)
tree18bc38235ac89696bab0a04fca94a43a6ed7536c /guides/source
parentde40b87e615252a73ea5d6b6780aa7fbf2c1cf1f (diff)
downloadrails-34dc028e75137707c46f81e1db942dad6660fb31.tar.gz
rails-34dc028e75137707c46f81e1db942dad6660fb31.tar.bz2
rails-34dc028e75137707c46f81e1db942dad6660fb31.zip
Fixed spacing issues on code comments in ActiveJob Basics guide.
Before: http://take.ms/z39h2 After: http://take.ms/Mo0G3
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_job_basics.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md
index 05beed8427..838014e306 100644
--- a/guides/source/active_job_basics.md
+++ b/guides/source/active_job_basics.md
@@ -78,7 +78,8 @@ end
Enqueue a job like so:
```ruby
-# Enqueue a job to be performed as soon the queueing system is free.
+# Enqueue a job to be performed as soon the queueing system is
+# free.
MyJob.perform_later record
```
@@ -114,8 +115,9 @@ You can easily set your queueing backend:
# config/application.rb
module YourApp
class Application < Rails::Application
- # Be sure to have the adapter's gem in your Gemfile and follow
- # the adapter's specific installation and deployment instructions.
+ # Be sure to have the adapter's gem in your Gemfile
+ # and follow the adapter's specific installation
+ # and deployment instructions.
config.active_job.queue_adapter = :sidekiq
end
end
@@ -153,8 +155,8 @@ class GuestsCleanupJob < ActiveJob::Base
end
# Now your job will run on queue production_low_priority on your
-# production environment and on staging_low_priority on your staging
-# environment
+# production environment and on staging_low_priority
+# on your staging environment
```
The default queue name prefix delimiter is '\_'. This can be changed by setting
@@ -176,8 +178,8 @@ class GuestsCleanupJob < ActiveJob::Base
end
# Now your job will run on queue production.low_priority on your
-# production environment and on staging.low_priority on your staging
-# environment
+# production environment and on staging.low_priority
+# on your staging environment
```
If you want more control on what queue a job will be run you can pass a `:queue`