lib/generators/insque/templates/insque.erb in insque-0.3.2 vs lib/generators/insque/templates/insque.erb in insque-0.3.3

- old
+ new

@@ -1,13 +1,4 @@ Insque.sender = '<%= sender_name %>' REDIS_CONFIG = YAML.load(File.open("#{Rails.root}/config/redis.yml"))[Rails.env] -$redis = Redis.new(:host => REDIS_CONFIG["host"], :port => REDIS_CONFIG["port"]) -Insque.redis = $redis +Insque.redis_config = { :host => REDIS_CONFIG["host"], :port => REDIS_CONFIG["port"] } Insque.debug = true -if defined?(PhusionPassenger) - PhusionPassenger.on_event(:starting_worker_process) do |forked| - if forked - $redis = Redis.new(:host => REDIS_CONFIG["host"], :port => REDIS_CONFIG["port"]) - Insque.redis = $redis - end - end -end