Sha256: 5b750ef5d7a44d0a54465c63f5b0f15a84929185dbf079ab91634a447f91c0a6
Contents?: true
Size: 286 Bytes
Versions: 28
Compression:
Stored size: 286 Bytes
Contents
class ExpireTicketJob < Struct.new(:ticket_ids, :cart_id) def self.enqueue(ticket_ids, cart_id) Delayed::Job.enqueue(ExpireTicketJob.new(ticket_ids, cart_id), :run_at => 10.minutes.from_now, :queue => "ticket") end def perform Ticket.unlock(ticket_ids, cart_id) end end
Version data entries
28 entries across 28 versions & 1 rubygems