update table status

This commit is contained in:
Nweni
2017-06-12 14:23:18 +06:30
parent 917ccd0294
commit b12b52d754
3 changed files with 8 additions and 7 deletions

View File

@@ -33,10 +33,7 @@ class Order < ApplicationRecord
table.status = "occupied"
table.save
else
puts "b"
booking = Booking.find(self.booking_id)
booking = Booking.find(self.booking_id)
end
booking.save!