diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-08-02 07:16:31 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-08-02 07:16:31 +0200 |
commit | af34e9b0e7763e088d0c288670c03dafecc3f37f (patch) | |
tree | 82777581ae71025af0e103a7b01b461862c24a8b /lib/action_cable | |
parent | 01ca41e5fced4a358b4ceb62e14f8c091c21cce1 (diff) | |
parent | 26de1dd8a48a7c5b2d74a4591881a5436b405a77 (diff) | |
download | rails-af34e9b0e7763e088d0c288670c03dafecc3f37f.tar.gz rails-af34e9b0e7763e088d0c288670c03dafecc3f37f.tar.bz2 rails-af34e9b0e7763e088d0c288670c03dafecc3f37f.zip |
Merge pull request #50 from lsylvester/fix-stream-for-documentation
update docs for broadcast_to to pass a message.
Diffstat (limited to 'lib/action_cable')
-rw-r--r-- | lib/action_cable/channel/streams.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/channel/streams.rb b/lib/action_cable/channel/streams.rb index a2bc42e5db..a37194b884 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 lets you alter what goes out. # Example below shows how you can use this to provide performance introspection in the process: |