diff options
author | Takayuki Matsubara <takayuki.1229@gmail.com> | 2015-12-03 23:06:14 +0900 |
---|---|---|
committer | Takayuki Matsubara <takayuki.1229@gmail.com> | 2015-12-03 23:06:14 +0900 |
commit | 6bd458d97d228be1199e8ff02c5b0f0a2c73eddf (patch) | |
tree | 20d538d54325e7fac32edfb0344b13b60e1bf86d | |
parent | 6be2604aa719713c602b8a873337d328196f8f57 (diff) | |
download | rails-6bd458d97d228be1199e8ff02c5b0f0a2c73eddf.tar.gz rails-6bd458d97d228be1199e8ff02c5b0f0a2c73eddf.tar.bz2 rails-6bd458d97d228be1199e8ff02c5b0f0a2c73eddf.zip |
fix typo
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 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`, -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 channel instance will automatically expose the public methods declared on the class (minus the callbacks), so that these |