adding old school resque inline send. confusion b/c Resque.inline is a newer feature

This commit is contained in:
Maxwell Salzberg 2011-07-02 12:10:25 -07:00
parent 2d9d9bd1a1
commit f4ca8898f6

View file

@ -8,7 +8,11 @@ begin
if Rails.env == 'production'
puts "WARNING: You are running Diaspora in production without Resque workers turned on. Please don't do this."
end
Resque.inline = true
module Resque
def enqueue(klass, *args)
klass.send(:perform, *args)
end
end
end
rescue
nil