diff options
author | Logan Hasson <logan.hasson@gmail.com> | 2014-08-20 15:08:19 -0400 |
---|---|---|
committer | Logan Hasson <logan.hasson@gmail.com> | 2014-08-20 15:08:19 -0400 |
commit | e569e12c66d430865a32ae67714d667da3e7c1d0 (patch) | |
tree | 2a008b00209518b24ff7d2c9f2bde8e6e0b8e47e /guides | |
parent | 2f194669ec8ac6445dcb4645077f07d292fd35c1 (diff) | |
download | rails-e569e12c66d430865a32ae67714d667da3e7c1d0.tar.gz rails-e569e12c66d430865a32ae67714d667da3e7c1d0.tar.bz2 rails-e569e12c66d430865a32ae67714d667da3e7c1d0.zip |
Fix a few typos/some grammar in Active Job Basics
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_job_basics.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index 5ce1dc43d1..a8e1f22b4d 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -19,7 +19,7 @@ Introduction Active Job is a framework for declaring jobs and making them run on a variety of queueing backends. These jobs can be everything from regularly scheduled -clean-ups, billing charges, or mailings. Anything that can be chopped up +clean-ups, to billing charges, to mailings. Anything that can be chopped up into small units of work and run in parallel, really. @@ -36,7 +36,7 @@ then. And you'll be able to switch between them without having to rewrite your j Creating a Job -------------- -This section will provide a step-by-step guide to creating a job and enqueue it. +This section will provide a step-by-step guide to creating a job and enqueuing it. ### Create the Job @@ -61,7 +61,7 @@ Rails. If you don't want to use a generator, you could create your own file inside of `app/jobs`, just make sure that it inherits from `ActiveJob::Base`. -Here's how a job looks like: +Here's what a job looks like: ```ruby class GuestsCleanupJob < ActiveJob::Base @@ -95,7 +95,7 @@ That's it! Job Execution ------------- -If not adapter is set, the job is immediately executed. +If no adapter is set, the job is immediately executed. ### Backends @@ -128,7 +128,7 @@ Active Job has adapters for the following queueing backends: ### Change Backends -You can easy change your adapter: +You can easily change your adapter: ```ruby # be sure to have the adapter gem in your Gemfile and follow the adapter specific @@ -140,7 +140,7 @@ YourApp::Application.config.active_job.queue_adapter = :sidekiq Queues ------ -Most of the adapters supports multiple queues. With Active Job you can schedule +Most of the adapters support multiple queues. With Active Job you can schedule the job to run on a specific queue: ```ruby @@ -157,7 +157,7 @@ you need to specify the queues to listen to. Callbacks --------- -Active Job provides hooks during the lifecycle of a job. Callbacks allows you to +Active Job provides hooks during the lifecycle of a job. Callbacks allow you to trigger logic during the lifecycle of a job. ### Available callbacks @@ -197,7 +197,7 @@ ActionMailer One of the most common jobs in a modern web application is sending emails outside of the request-response cycle, so the user doesn't have to wait on it. Active Job -is integrated with Action Mailer so you can easily send emails async: +is integrated with Action Mailer so you can easily send emails asynchronously: ```ruby # If you want to send the email now use #deliver_now |