Merge branch 'ui_ux_changes' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes

This commit is contained in:
phyusin
2018-07-16 09:54:09 +06:30

View File

@@ -61,7 +61,9 @@ class Settings::OrderQueueStationsController < ApplicationController
# DELETE /settings/order_queue_stations/1
# DELETE /settings/order_queue_stations/1.json
def destroy
# byebug
@settings_order_queue_station.destroy
OrderQueueProcessByZone.where(:order_queue_station_id => params[:id] ).destroy_all
flash[:notice] = 'Order queue station was successfully destroyed.'
render :json => {:status=> "Success", :url => settings_order_queue_stations_url }.to_json
# respond_to do |format|