aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorJoseph Mullins <joseph@ropeney.com>2016-07-12 00:51:39 +0930
committerJoseph Mullins <joseph@mindvision.com.au>2016-07-12 01:24:15 +0930
commit931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76 (patch)
tree8fb28d5fcc7b089e86276391872c73f15d5a11ce /guides/source
parent968b59af872efe4fd562bea377765967dadea958 (diff)
downloadrails-931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76.tar.gz
rails-931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76.tar.bz2
rails-931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76.zip
Update ActionCable Rebroadcasting a Message documentation
Replace broadcast_to with ActionCable.server.broadcast to be inline with its partner, #stream_from
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/action_cable_overview.md2
1 files changed, 1 insertions, 1 deletions
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
```