From 6bd458d97d228be1199e8ff02c5b0f0a2c73eddf Mon Sep 17 00:00:00 2001 From: Takayuki Matsubara Date: Thu, 3 Dec 2015 23:06:14 +0900 Subject: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a7c3ca707..102a4b720e 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3