work_smarter 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/work_smarter.rb +1 -1
- data/work_smarter.gemspec +1 -1
- metadata +1 -1
data/lib/work_smarter.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Work_smarter < Struct.new(:obj, :func, :args)
|
2
2
|
# delayed_job wrapper, creates a new monitored job and queues it
|
3
|
-
def self.queue(obj, func, args = [])
|
3
|
+
def self.queue(obj, func = [], args = [])
|
4
4
|
Work_smarter.configure unless defined?(@@config)
|
5
5
|
Delayed::Job.enqueue Work_smarter.new(obj, func, args)
|
6
6
|
end
|
data/work_smarter.gemspec
CHANGED