1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix precedence issue

This commit is contained in:
Mike Perham 2013-02-18 20:45:37 -08:00
parent 7c54170578
commit 7d96cc32fa

View file

@ -315,7 +315,7 @@ module Sidekiq
if File.exist?(cfile)
opts = YAML.load(ERB.new(IO.read(cfile)).result)
opts = opts.merge(opts.delete(environment) || {})
parse_queues opts, opts.delete(:queues) || []
parse_queues(opts, opts.delete(:queues) || [])
else
raise ArgumentError, "can't find config file #{cfile}"
end