Class: Orders::EnableWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/orders/enable_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(order_id) ⇒ Object



7
8
9
10
11
12
# File 'app/workers/orders/enable_worker.rb', line 7

def perform(order_id)
  order = Order.find(order_id)

  Terminal.enable
  order.complete
end