diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-07-08 16:10:33 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-07-08 16:10:33 +0200 |
commit | 152831ad3ff17f5e8b8f06e28ba2896cc038f322 (patch) | |
tree | 26d7ca84c35fc27108e2d58384bb4aaf2d3f9275 | |
parent | a9c3fd59ca298f854e55faba505d9540709aef10 (diff) | |
download | rails-152831ad3ff17f5e8b8f06e28ba2896cc038f322.tar.gz rails-152831ad3ff17f5e8b8f06e28ba2896cc038f322.tar.bz2 rails-152831ad3ff17f5e8b8f06e28ba2896cc038f322.zip |
Update for latest API
-rw-r--r-- | lib/action_cable/server/broadcasting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |