aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-07-19 16:47:08 +0930
committerGitHub <noreply@github.com>2016-07-19 16:47:08 +0930
commitd8bc0964d29837407efe425d7a65ab9a27d96e82 (patch)
treea26dbc24431f2da38dc4f1adaa88d0d3f468a71d
parentb770f3c474b27e9dbd9d0cb55110d49f6bf114ed (diff)
parent931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76 (diff)
downloadrails-d8bc0964d29837407efe425d7a65ab9a27d96e82.tar.gz
rails-d8bc0964d29837407efe425d7a65ab9a27d96e82.tar.bz2
rails-d8bc0964d29837407efe425d7a65ab9a27d96e82.zip
Merge pull request #25780 from Ropeney/patch-1
Update ActionCable Rebroadcasting a Message documentation
-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
```