1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update for latest API

This commit is contained in:
David Heinemeier Hansson 2015-07-08 16:10:33 +02:00
parent a9c3fd59ca
commit 152831ad3f

View file

@ -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