adding old school resque inline send. confusion b/c Resque.inline is a newer feature
This commit is contained in:
parent
2d9d9bd1a1
commit
f4ca8898f6
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue