update checking booking

This commit is contained in:
Aung Myo
2017-12-14 17:10:05 +06:30
parent fc45198542
commit 035d0851ee
6 changed files with 49 additions and 0 deletions

View File

@@ -122,4 +122,11 @@ class DiningFacility < ApplicationRecord
end
return arr_booking
end
#send order items and send to order queue
def self.check_in_booking(table_id)
table = DiningFacility.find(table_id)
#Send to background job for processing
CheckInBookingJob.perform_later(table)
end
end