resque/resque-web — pull request #61 by richpeck (2014-08-12 20:41:45+00:00)
Title: Redis & Others

You've got a few glaring issues with your current implementation.

Firstly, your reference to `Resque.workers` is based on the old V1 implementation. As I'm running V2, it has to be `Resque::WorkerRegistry::all`. I have created a pull request to create the `.workers` method in the `Resque v2` for legacy, but for now, to avoid the `No `.workers` method for Resque::Module` error, I've used that.

Secondly, your removal of the `redis` instance method causes all sorts of referencing errors. I fixed this by reintroducing the `redis` instance method into your `Resque` `Module`, with it referencing the `config.redis`, which should be set in the `initializer`.