From 8577687fcb9da20868a5ea50aea36427270d4485 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 13 Sep 2012 15:09:15 -0700 Subject: Move queue classes to ActiveSupport --- railties/lib/rails/application/finisher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails/application/finisher.rb') diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index 777f0d269e..f9a3c00946 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -97,8 +97,8 @@ module Rails end initializer :activate_queue_consumer do |app| - if config.queue == Rails::Queueing::Queue - app.queue_consumer = config.queue_consumer.start(app.queue) + if config.queue == ActiveSupport::Queue + app.queue_consumer = config.queue_consumer.start(app.queue, Rails.logger) at_exit { app.queue_consumer.shutdown } end end -- cgit v1.2.3