move table

This commit is contained in:
Nweni
2017-06-22 16:31:41 +06:30
parent 09252ba055
commit 0c0e44c808
8 changed files with 44 additions and 20 deletions

View File

@@ -20,6 +20,8 @@ class DiningFacility < ApplicationRecord
def get_booking
booking = self.get_current_booking
puts "is bookig?"
puts booking
if booking
if booking.dining_facility_id.to_i == self.id
if booking.booking_status == 'assign'