lib/chillout/railtie.rb in chillout-0.5.3 vs lib/chillout/railtie.rb in chillout-0.5.4

- old
+ new

@@ -14,25 +14,23 @@ load "chillout/tasks.rb" end end class RailsInitializer - + def initialize(rails_app, chillout_config, rails_logger) @rails_app = rails_app @chillout_config = chillout_config @rails_logger = rails_logger end def start - @rails_logger.info "[Chillout] railtie initializing" + @rails_logger.info "[Chillout] Railtie initializing" client = Client.new(@chillout_config[:secret], options) ActiveRecord::Base.extend(CreationListener) - @rails_logger.info "[Chillout] creation listener attached" + @rails_logger.info "[Chillout] Creation listener attached" @rails_app.middleware.use Middleware::CreationsMonitor, client - @rails_logger.info "[Chillout] creation monitor enabled" - client.start_worker - @rails_logger.info "[Chillout] worker started" + @rails_logger.info "[Chillout] Creation monitor enabled" end def options Hash[options_list].merge(:logger => @rails_logger) end