diff options
author | Matthew Draper <matthew@trebex.net> | 2016-07-19 16:47:08 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 16:47:08 +0930 |
commit | d8bc0964d29837407efe425d7a65ab9a27d96e82 (patch) | |
tree | a26dbc24431f2da38dc4f1adaa88d0d3f468a71d /guides/source | |
parent | b770f3c474b27e9dbd9d0cb55110d49f6bf114ed (diff) | |
parent | 931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76 (diff) | |
download | rails-d8bc0964d29837407efe425d7a65ab9a27d96e82.tar.gz rails-d8bc0964d29837407efe425d7a65ab9a27d96e82.tar.bz2 rails-d8bc0964d29837407efe425d7a65ab9a27d96e82.zip |
Merge pull request #25780 from Ropeney/patch-1
Update ActionCable Rebroadcasting a Message documentation
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_cable_overview.md | 2 |
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 ``` |