I think this is fine as it is, but here's a Ruby tip of the day: `Enumerable#detect` takes an argument that's used if nothing matches, so this could be written as:

``` Ruby
queues.detect(default) { |queue| queue.matches?(config) }
```