aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/streams.rb
diff options
context:
space:
mode:
authorLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-07-31 09:57:25 +1000
committerLachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au>2015-08-02 13:06:48 +1000
commit26de1dd8a48a7c5b2d74a4591881a5436b405a77 (patch)
treebc8539a2ceebb71fabd57a208fbc22508196c4d6 /lib/action_cable/channel/streams.rb
parent0c30d87868a8b59c47acbc695ef5e37d6361b3cc (diff)
downloadrails-26de1dd8a48a7c5b2d74a4591881a5436b405a77.tar.gz
rails-26de1dd8a48a7c5b2d74a4591881a5436b405a77.tar.bz2
rails-26de1dd8a48a7c5b2d74a4591881a5436b405a77.zip
update docs for broadcast_to to pass a message to broadcast.
Diffstat (limited to 'lib/action_cable/channel/streams.rb')
-rw-r--r--lib/action_cable/channel/streams.rb2
1 files changed, 1 insertions, 1 deletions
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: