diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-20 13:15:16 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-20 13:15:16 -0300 |
commit | 0baed94064fd783a3cfc2efcbc9759df0bf7f0d2 (patch) | |
tree | 2563ad8b85353bea431575b7329a65b8eb49c0d4 /guides/source/active_job_basics.md | |
parent | b03e0483f09928a8de6b0e7093faafa801505b6b (diff) | |
parent | 9e7f4a94caa9019b2ef0295ad242fbed0acf8bb6 (diff) | |
download | rails-0baed94064fd783a3cfc2efcbc9759df0bf7f0d2.tar.gz rails-0baed94064fd783a3cfc2efcbc9759df0bf7f0d2.tar.bz2 rails-0baed94064fd783a3cfc2efcbc9759df0bf7f0d2.zip |
Merge pull request #16582 from cristianbica/actionmailer-deprecate-deliver
Deprecated ActionMailer .deliver and updated ActionMailer / ActiveJob docs/guide
Diffstat (limited to 'guides/source/active_job_basics.md')
-rw-r--r-- | guides/source/active_job_basics.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index f7864f4961..5ce1dc43d1 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -200,10 +200,10 @@ of the request-response cycle, so the user doesn't have to wait on it. Active Jo is integrated with Action Mailer so you can easily send emails async: ```ruby -# Instead of the classic -UserMailer.welcome(@user).deliver +# If you want to send the email now use #deliver_now +UserMailer.welcome(@user).deliver_now -# use #deliver later to send the email async +# If you want to send the email through ActiveJob use #deliver_later UserMailer.welcome(@user).deliver_later ``` |