Skip to content

Commit

Permalink
[ci skip] Clarify Action Mailer/Active Job usage note
Browse files Browse the repository at this point in the history
  • Loading branch information
loganhasson committed Aug 21, 2014
1 parent f603480 commit 3941b8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions guides/source/action_mailer_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ class UsersController < ApplicationController
end
```

NOTE: By default Active Job is configured to execute the job `:inline`. So you can
use `deliver_later` now to send the emails and when you decide to start sending the
email from a background job you'll just have to setup Active Job to use a queueing
NOTE: Active Job's default behavior is to execute jobs ':inline'. So, you can use
`deliver_later` now to send emails, and when you later decide to start sending
them from a background job, you'll only need to set up Active Job to use a queueing
backend (Sidekiq, Resque, etc).

If you want to send the emails right away (from a cronjob for example) just
call `deliver_now`:
If you want to send emails right away (from a cronjob for example) just call
`deliver_now`:

```ruby
class SendWeeklySummary
Expand Down

0 comments on commit 3941b8d

Please sign in to comment.