Class: Workarea::CleanOrders

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

Instance Method Summary collapse

Instance Method Details

#performObject



5
6
7
8
# File 'app/workers/workarea/clean_orders.rb', line 5

def perform(*)
  Order.expired.delete_all
  Order.expired_in_checkout.delete_all
end