Permalink
Browse files

Update ActionCable Rebroadcasting a Message documentation

Replace broadcast_to with ActionCable.server.broadcast to be inline with its partner, #stream_from
  • Loading branch information...
Ropeney committed Jul 11, 2016
1 parent 968b59a commit 931781b74f4ce7c1a9d493f5c4df7cd6f7c15c76
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
```

0 comments on commit 931781b

Please sign in to comment.