diff options
author | Eric Zhang <i@qinix.com> | 2016-08-12 00:29:20 +0800 |
---|---|---|
committer | Eric Zhang <i@qinix.com> | 2016-08-12 00:29:20 +0800 |
commit | 3f9d3809634c50621dbab6346b4ee5bbe53c15b6 (patch) | |
tree | 277da1ae9d112f6c4274061772619019546a53b9 | |
parent | dfd7c2f05828d567d9803ca8aed51eac71092160 (diff) | |
download | rails-3f9d3809634c50621dbab6346b4ee5bbe53c15b6.tar.gz rails-3f9d3809634c50621dbab6346b4ee5bbe53c15b6.tar.bz2 rails-3f9d3809634c50621dbab6346b4ee5bbe53c15b6.zip |
[ci skip] Fix documentation wrong for ActionCable
-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 3501822bed..118b0b52b2 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -313,7 +313,7 @@ App.cable.subscriptions.create { channel: "ChatChannel", room: "Best Room" }, ```ruby # Somewhere in your app this is called, perhaps # from a NewCommentJob. -ChatChannel.broadcast_to( +ActionCable.server.broadcast( "chat_#{room}", sent_by: 'Paul', body: 'This is a cool chat app.' |