delayed_job_extras 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,13 @@
|
|
1
1
|
module Delayed
|
2
2
|
class Job
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
4
|
+
class << self
|
5
|
+
def enqueue_with_work_off(obj, *args)
|
6
|
+
enqueue_without_work_off(obj, *args)
|
7
|
+
Delayed::Job.work_off
|
9
8
|
end
|
10
|
-
|
11
|
-
obj.respond_to?(:dj_object) ? obj.dj_object : nil
|
9
|
+
alias_method_chain :enqueue, :work_off
|
12
10
|
end
|
13
11
|
|
14
12
|
end
|
15
|
-
end
|
13
|
+
end
|