Skip to content

Commit 3f9d380

Browse files
committed
[ci skip] Fix documentation wrong for ActionCable
1 parent dfd7c2f commit 3f9d380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/action_cable_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ App.cable.subscriptions.create { channel: "ChatChannel", room: "Best Room" },
313313
```ruby
314314
# Somewhere in your app this is called, perhaps
315315
# from a NewCommentJob.
316-
ChatChannel.broadcast_to(
316+
ActionCable.server.broadcast(
317317
"chat_#{room}",
318318
sent_by: 'Paul',
319319
body: 'This is a cool chat app.'

0 commit comments

Comments
 (0)