remove comment data

This commit is contained in:
San Wai Lwin
2018-05-04 10:12:28 +06:30
parent 39264db517
commit 084bf7eb1b
38 changed files with 1824 additions and 1031 deletions

View File

@@ -0,0 +1,10 @@
class CheckNewOrderChannel < ApplicationCable::Channel
def subscribed
stream_from "check_new_order_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
end

View File

@@ -0,0 +1,10 @@
class CheckOrderReadyToDeliveryChannel < ApplicationCable::Channel
def subscribed
stream_from "check_order_ready_to_delivery_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
end

View File

@@ -0,0 +1,10 @@
class CheckOrderSendToKitchenChannel < ApplicationCable::Channel
def subscribed
stream_from "check_order_send_to_kitchen_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
end