Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created September 29, 2010 10:46
Show Gist options
  • Save bogdan/602549 to your computer and use it in GitHub Desktop.
Save bogdan/602549 to your computer and use it in GitHub Desktop.
require "resque"
if (Rails.env.development? || Rails.env.test?) && !ENV['RESQUE']
Resque.class_eval do
def enqueue(clazz, *arguments)
clazz.perform(*arguments)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment