Sha256: fcec03bb27cc14e24369cbb9fae346048f7732f5b469198c486994cbbac0dbe9
Contents?: true
Size: 357 Bytes
Versions: 7
Compression:
Stored size: 357 Bytes
Contents
Application.load 'lib/smartkiosk/sidekiq' module Orders class ReloadWorker include Sidekiq::Worker sidekiq_options :queue => :orders def perform(order_id) StartupWorker.perform_async self.class.name, :finish, [order_id] Terminal.reload end def self.finish(order_id) Order.find(order_id).complete end end end
Version data entries
7 entries across 7 versions & 1 rubygems