lardawge/carrierwave_backgrounder — pull request #94 by fbuenemann (2012-12-06 22:21:15+00:00)
Title: [RFC] Allow to configure backend by passing options

This allows to pass options to the queue backend, currently only useful with GirlFriday. I needed this to be able to modify the number of workers and use redis as persistence store with gf.

Example:
```ruby
CarrierWave::Backgrounder.configure do |c|
c.backend = :girl_friday, { size: 3 }
end
```

While this works, I'm not really happy with abusing a setter method to pass in an option hash. However using a seperate setter would not work without further changes, because options would net to be set before setting the backend and it's not a good idea to depend on the order of these settings in the configuration block.

Another option at least for GirlFriday would be to pass in an instance of a GrilFriday Queue, so we could set it up in an initializer and then pass it to cw backgrounder.

@lardawge: What's your thoughts on this?