From 9bb4850e7bf864e0277140ab6d3d4ae67ef68170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 12 Sep 2012 14:47:15 -0300 Subject: Use the SynchronousQueue as default in production and development. We should not let the users use the ThreadedConsumer without know about the risks --- .../rails/app/templates/config/environments/development.rb.tt | 4 ++-- .../rails/app/templates/config/environments/production.rb.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index 122e7e2b34..ba8f586613 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -42,6 +42,6 @@ config.assets.debug = true <%- end -%> - # In development, use an in-memory queue for queueing. - config.queue = Rails::Queueing::Queue + # In development, use an synchronous queue for queueing. + config.queue = Rails::Queueing::SynchronousQueue end diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index a627636089..cceb88de39 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt @@ -80,7 +80,7 @@ # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new - # Default the production mode queue to an in-memory queue. You will probably + # Default the production mode queue to an synchronous queue. You will probably # want to replace this with an out-of-process queueing solution. - config.queue = Rails::Queueing::Queue + config.queue = Rails::Queueing::SynchronousQueue end -- cgit v1.2.3