lib/generators/templates/caerbannog_initializer.rb in caerbannog-0.1.0 vs lib/generators/templates/caerbannog_initializer.rb in caerbannog-0.2.0
- old
+ new
@@ -1,4 +1,8 @@
-Caerbannog::Queue.message_class = CaerbannogMessage
+Caerbannog::Queue.configure do |config|
+ config.message_class = CaerbannogMessage
+ config.rabbit_read_url = ENV['RABBIT_URL']
+ config.rabbit_write_url = ENV['RABBIT_URL']
+end