order fix for booking

This commit is contained in:
Yan
2017-06-15 14:44:27 +06:30
parent 344d27f034
commit 0778df4e80
3 changed files with 6 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ class Order < ApplicationRecord
table = DiningFacility.find(self.table_id)
table.status = "occupied"
table.save
else
else
booking = Booking.find(self.booking_id)
end