replace @shop and shop_details with current_shop

This commit is contained in:
Zin Moe
2020-01-13 17:34:48 +06:30
parent f99defc459
commit a3edbb07fd
48 changed files with 72 additions and 72 deletions

View File

@@ -76,7 +76,7 @@ class Foodcourt::OrdersController < BaseFoodcourtController
def completed
customer =Customer.find_by_customer_id(params[:customer_id])
phone_number =customer.contact_no
if Order.send_message(phone_number,params[:order_id],@shop.name)
if Order.send_message(phone_number,params[:order_id],current_shop.name)
booking =Booking.find(params[:booking_id])
booking.booking_status ='completed'
booking.save!