examples/serializer.rb in tennis-jobs-0.2.0 vs examples/serializer.rb in tennis-jobs-0.3.0
- old
+ new
@@ -30,8 +30,8 @@
Example.new(__FILE__, SumWorker).run do
array = Array.new(5) { 1 + rand(5) }
print "Press enter to enqueue a random array..." ; gets
puts "Sending #{array.inspect} to the #{SumWorker::Worker.queue_name} queue!"
- SumWorker.execute(array)
+ SumWorker.send_work(array)
end