work_smarter 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
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