aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/CHANGELOG.md
diff options
context:
space:
mode:
authorVladimir Dementyev <dementiev.vm@gmail.com>2019-01-22 15:06:16 -0500
committerVladimir Dementyev <dementiev.vm@gmail.com>2019-01-22 15:29:12 -0500
commit513dd2cfdb98c01bce9759b29c48aa8b691f53d4 (patch)
treed0e0b876cc41887fb9398b9543c9b278a554465d /actioncable/CHANGELOG.md
parent35bef64718f85ef550916f840fd10a9288185577 (diff)
downloadrails-513dd2cfdb98c01bce9759b29c48aa8b691f53d4.tar.gz
rails-513dd2cfdb98c01bce9759b29c48aa8b691f53d4.tar.bz2
rails-513dd2cfdb98c01bce9759b29c48aa8b691f53d4.zip
Add note about broadcast_to/broadcasting_for to change log
Diffstat (limited to 'actioncable/CHANGELOG.md')
-rw-r--r--actioncable/CHANGELOG.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/actioncable/CHANGELOG.md b/actioncable/CHANGELOG.md
index 4109dd6138..7f3177b64e 100644
--- a/actioncable/CHANGELOG.md
+++ b/actioncable/CHANGELOG.md
@@ -1,3 +1,22 @@
+* Add `Channel::Base#broadcast_to`.
+
+ You can now call `broadcast_to` within a channel action, which equals to
+ the `self.class.broadcast_to`.
+
+ *Vladimir Dementyev*
+
+* Make `Channel::Base.broadcasting_for` a public API.
+
+ You can use `.broadcasting_for` to generate a unique stream identifier within
+ a channel for the specified target (e.g. Active Record model):
+
+ ```ruby
+ ChatChannel.broadcasting_for(model) # => "chat:<model.to_gid_param>"
+ ```
+
+ *Vladimir Dementyev*
+
+
## Rails 6.0.0.beta1 (January 18, 2019) ##
* Merge [`action-cable-testing`](https://github.com/palkan/action-cable-testing) to Rails.