mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix typo
This commit is contained in:
parent
6be2604aa7
commit
6bd458d97d
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ $(document).on 'click', '[data-behavior~=appear_away]', ->
|
||||||
```
|
```
|
||||||
|
|
||||||
Simply calling `App.cable.subscriptions.create` will setup the subscription, which will call `AppearanceChannel#subscribed`,
|
Simply calling `App.cable.subscriptions.create` will setup the subscription, which will call `AppearanceChannel#subscribed`,
|
||||||
which in turn is linked to original `App.consumer` -> `ApplicationCable::Connection` instances.
|
which in turn is linked to original `App.cable` -> `ApplicationCable::Connection` instances.
|
||||||
|
|
||||||
We then link `App.appearance#appear` to `AppearanceChannel#appear(data)`. This is possible because the server-side
|
We then link `App.appearance#appear` to `AppearanceChannel#appear(data)`. This is possible because the server-side
|
||||||
channel instance will automatically expose the public methods declared on the class (minus the callbacks), so that these
|
channel instance will automatically expose the public methods declared on the class (minus the callbacks), so that these
|
||||||
|
|
Loading…
Reference in a new issue