From 931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76 Mon Sep 17 00:00:00 2001 From: Joseph Mullins Date: Tue, 12 Jul 2016 00:51:39 +0930 Subject: Update ActionCable Rebroadcasting a Message documentation Replace broadcast_to with ActionCable.server.broadcast to be inline with its partner, #stream_from --- guides/source/action_cable_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index 0d00b7f07b..02db86888c 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -333,7 +333,7 @@ class ChatChannel < ApplicationCable::Channel end def receive(data) - ChatChannel.broadcast_to("chat_#{params[:room]}", data) + ActionCable.server.broadcast("chat_#{params[:room]}", data) end end ``` -- cgit v1.2.3