lib/bunny/session.rb in bunny-0.10.5 vs lib/bunny/session.rb in bunny-0.10.6
- old
+ new
@@ -111,10 +111,10 @@
def initialize(connection_string_or_opts = Hash.new, optz = Hash.new)
opts = case (ENV["RABBITMQ_URL"] || connection_string_or_opts)
when nil then
Hash.new
when String then
- self.class.parse_uri(connection_string_or_opts)
+ self.class.parse_uri(ENV["RABBITMQ_URL"] || connection_string_or_opts)
when Hash then
connection_string_or_opts
end.merge(optz)
@opts = opts