print_channel with shop_code

This commit is contained in:
Thein Lin Kyaw
2020-08-06 14:05:20 +06:30
parent 4a2dd294ab
commit 61a1189083
6 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
class PrintChannel < ApplicationCable::Channel
def subscribed
stream_from "print_channel"
stream_from "print_channel_#{params[:shop_code]}"
end
def unsubscribed