From 26de1dd8a48a7c5b2d74a4591881a5436b405a77 Mon Sep 17 00:00:00 2001 From: Lachlan Sylvester Date: Fri, 31 Jul 2015 09:57:25 +1000 Subject: update docs for broadcast_to to pass a message to broadcast. --- lib/action_cable/channel/streams.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_cable/channel/streams.rb') diff --git a/lib/action_cable/channel/streams.rb b/lib/action_cable/channel/streams.rb index f711b065ca..540f7a18f4 100644 --- a/lib/action_cable/channel/streams.rb +++ b/lib/action_cable/channel/streams.rb @@ -35,7 +35,7 @@ module ActionCable # # You can then broadcast to this channel using: # - # CommentsChannel.broadcast_to(@post) + # CommentsChannel.broadcast_to(@post, @comment) # # If you don't just want to parlay the broadcast unfiltered to the subscriber, you can supply a callback that let's you alter what goes out. # Example below shows how you can use this to provide performance introspection in the process: -- cgit v1.2.3