From 34b23e7110a3a13cf157608cefc9b5701017bf39 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 10 Sep 2012 12:52:19 -0700 Subject: Action Mailer async flag is true by default using a Synchronous impl --- guides/source/action_mailer_basics.textile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'guides') diff --git a/guides/source/action_mailer_basics.textile b/guides/source/action_mailer_basics.textile index 5f09b8e410..6d04a76088 100644 --- a/guides/source/action_mailer_basics.textile +++ b/guides/source/action_mailer_basics.textile @@ -472,7 +472,6 @@ The following configuration options are best made in one of the environment file |+delivery_method+|Defines a delivery method. Possible values are :smtp (default), :sendmail, :file and :test.| |+perform_deliveries+|Determines whether deliveries are actually carried out when the +deliver+ method is invoked on the Mail message. By default they are, but this can be turned off to help functional testing.| |+deliveries+|Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most useful for unit and functional testing.| -|+async+|Setting this flag will turn on asynchronous message sending, message rendering and delivery will be pushed to Rails.queue for processing.| |+default_options+|Allows you to set default values for the mail method options (:from, :reply_to, etc.).| h4. Example Action Mailer Configuration @@ -535,19 +534,7 @@ In the test we send the email and store the returned object in the +email+ varia h3. Asynchronous -You can turn on application-wide asynchronous message sending by adding to your config/application.rb file: - - -config.action_mailer.async = true - - -Alternatively you can turn on async within specific mailers: - - -class WelcomeMailer < ActionMailer::Base - self.async = true -end - +Rails provides a Synchronous Queue by default. If you want to use an Asynchronous one you will need to configure an async Queue provider like Resque. Queue providers are supposed to have a Railtie where they configure it's own async queue. h4. Custom Queues -- cgit v1.2.3