lib/sequins/sequence.rb in sequins-0.1.5 vs lib/sequins/sequence.rb in sequins-0.1.6
- old
+ new
@@ -76,10 +76,10 @@
delay_until = delay_until.to_date.at(tod, zone)
end
next_step = options[:then]
- Sequins::DelayWorker.set(wait_until: delay_until).perform_later(@klass.to_s, target.class.to_s, target.id, next_step.to_s)
+ Sequins.schedule_delay(delay_until, @klass, target, next_step)
end
def trigger(target, *args)
options = {}
if args.last.is_a?(Hash)