From 770ef87678a2fca991ef07b2800ce7f80854ae28 Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 23 May 2018 17:28:41 +0630 Subject: [PATCH] remove action cable comment --- app/controllers/origami/split_bill_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/origami/split_bill_controller.rb b/app/controllers/origami/split_bill_controller.rb index faa41926..c7311fd6 100755 --- a/app/controllers/origami/split_bill_controller.rb +++ b/app/controllers/origami/split_bill_controller.rb @@ -337,12 +337,12 @@ class Origami::SplitBillController < BaseOrigamiController end Promotion.promo_activate(sale) - # if ENV["SERVER_MODE"] == 'cloud' - # from = request.subdomain + "." + request.domain - # else - # from = "" - # end - # ActionCable.server.broadcast "bill_channel",table: table,from:from + if ENV["SERVER_MODE"] == 'cloud' + from = request.subdomain + "." + request.domain + else + from = "" + end + ActionCable.server.broadcast "bill_channel",table: table,from:from render :json => { status: status } else