aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorhenning mueller <mail@nning.io>2015-12-21 09:35:37 +0100
committerhenning mueller <mail@nning.io>2015-12-21 09:35:37 +0100
commit16bee0f5bde72bf1e1833fddf36f8bdd2fc29390 (patch)
tree181d7d39c1eb8a083d75345e29adcd3c2e2d2ef6 /actioncable
parent85a8175cb0a5f25425be4dfede2c12c3f6685e7d (diff)
downloadrails-16bee0f5bde72bf1e1833fddf36f8bdd2fc29390.tar.gz
rails-16bee0f5bde72bf1e1833fddf36f8bdd2fc29390.tar.bz2
rails-16bee0f5bde72bf1e1833fddf36f8bdd2fc29390.zip
Replaced "Cable" by "ActionCable" in CoffeeScript examples.
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/README.md b/actioncable/README.md
index 32f49c215f..a73e05cffa 100644
--- a/actioncable/README.md
+++ b/actioncable/README.md
@@ -364,7 +364,7 @@ Then add the following line to your layout before your JavaScript tag:
And finally, create your consumer like so:
```coffeescript
-App.cable = Cable.createConsumer()
+App.cable = ActionCable.createConsumer()
```
For a full list of all configuration options, see the `ActionCable::Server::Configuration` class.
@@ -408,7 +408,7 @@ Example::Application.routes.draw do
end
```
-You can use `App.cable = Cable.createConsumer("/websocket")` to connect to the cable server.
+You can use `App.cable = ActionCable.createConsumer("/websocket")` to connect to the cable server.
For every instance of your server you create and for every worker your server spawns, you will also have a new instance of ActionCable, but the use of Redis keeps messages synced across connections.