Last Updated: February 25, 2016
·
935
· Alexandr K

Resque perform immediately in development and test env

if Rails.env.development? || Rails.env.test?
  module Resque
    def self.enqueue(klass, *arguments)
      klass.perform(*arguments)
    end
  end
end