Sha256: 8fd3fd2ba7daa22fad2ac64af65ec4416a1d95a4de584f1c5e0128f4d4898669

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require "qe"
require "resque"

module Qe
  class Resque
    class Worker
      def self.perform(*args)
        Qe::Worker.perform(*args)
      end
    end

    def self.enqueue(worker, options = {})
      Worker.instance_variable_set "@queue", worker.queue
      ::Resque.enqueue Worker, worker.name, options
    end
  end

  self.adapter = Resque
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qe-0.2.0 lib/qe/resque.rb
qe-0.1.3 lib/qe/resque.rb