From 152831ad3ff17f5e8b8f06e28ba2896cc038f322 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 8 Jul 2015 16:10:33 +0200 Subject: Update for latest API --- lib/action_cable/server/broadcasting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/action_cable/server/broadcasting.rb b/lib/action_cable/server/broadcasting.rb index c082e87e56..de13e26511 100644 --- a/lib/action_cable/server/broadcasting.rb +++ b/lib/action_cable/server/broadcasting.rb @@ -14,7 +14,7 @@ module ActionCable # "web_notifications_1", { title: 'New things!', body: 'All shit fit for print' } # # # Client-side coffescript which assumes you've already requested the right to send web notifications - # BC.cable.createSubscription "WebNotificationsChannel", + # App.cable.subscriptions.create "WebNotificationsChannel", # received: (data) -> # web_notification = new Notification data['title'], body: data['body'] module Broadcasting -- cgit v1.2.3