lib/backgrounder/support/backends.rb in carrierwave_backgrounder-0.3.0 vs lib/backgrounder/support/backends.rb in carrierwave_backgrounder-0.4.0

- old
+ new

@@ -50,11 +50,10 @@ end @girl_friday_queue << { :worker => worker.new(*args) } end def enqueue_sucker_punch(worker, *args) - @sucker_punch_queue ||= SuckerPunch::Queue[queue_options[:queue] || :carrierwave] - @sucker_punch_queue.async.perform(*args) + worker.new.async.perform(*args) end def enqueue_qu(worker, *args) worker.instance_variable_set('@queue', queue_options[:queue] || :carrierwave) ::Qu.enqueue worker, *args