diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-04-26 21:38:08 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-04-26 21:38:27 -0700 |
commit | adff4a706a5d7ad18ef05303461e1a0d848bd662 (patch) | |
tree | 1689940574a1efe2a51b5a24a5d609f41c30d023 /railties/lib/rails/generators | |
parent | 770c809db4dd9039244abe27ebd247620e1e4911 (diff) | |
download | rails-adff4a706a5d7ad18ef05303461e1a0d848bd662.tar.gz rails-adff4a706a5d7ad18ef05303461e1a0d848bd662.tar.bz2 rails-adff4a706a5d7ad18ef05303461e1a0d848bd662.zip |
Initial queue implementation
Diffstat (limited to 'railties/lib/rails/generators')
3 files changed, 10 insertions, 0 deletions
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 eb4dfa7c89..c486ae590e 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 @@ -35,4 +35,7 @@ # Expands the lines which load the assets. config.assets.debug = true <%- end -%> + + # In development, use an in-memory queue for queueing + config.queue = Queue 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 1c980e5ce6..854e6e95cd 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 @@ -76,4 +76,8 @@ # 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 + # want to replace this with an out-of-process queueing solution + config.queue = Queue end diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt index b725dd19f6..b27b88a3c6 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt @@ -33,4 +33,7 @@ # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + # Use the testing queue + config.queue = Rails::Queueing::TestQueue end |