From 502d47d7f6b5bf9533676c44b9e325dc3feca3c0 Mon Sep 17 00:00:00 2001 From: Jeffrey Hardy Date: Wed, 8 Jul 2015 23:22:56 -0400 Subject: Fix CoffeeScript syntax in code examples --- lib/action_cable/server/broadcasting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_cable') diff --git a/lib/action_cable/server/broadcasting.rb b/lib/action_cable/server/broadcasting.rb index de13e26511..4f72ffd96f 100644 --- a/lib/action_cable/server/broadcasting.rb +++ b/lib/action_cable/server/broadcasting.rb @@ -16,7 +16,7 @@ module ActionCable # # Client-side coffescript which assumes you've already requested the right to send web notifications # App.cable.subscriptions.create "WebNotificationsChannel", # received: (data) -> - # web_notification = new Notification data['title'], body: data['body'] + # new Notification data['title'], body: data['body'] module Broadcasting # Broadcast a hash directly to a named broadcasting. It'll automatically be JSON encoded. def broadcast(broadcasting, message) -- cgit v1.2.3