From 8b69f1eeba753c38364fb88136b2503480f2de1d Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Thu, 4 Feb 2016 22:33:46 -0500 Subject: Enable Action Cable routes by default This also marks Action Cable routes as internal to Rails. --- actioncable/app/assets/javascripts/action_cable.coffee.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actioncable/app/assets/javascripts') diff --git a/actioncable/app/assets/javascripts/action_cable.coffee.erb b/actioncable/app/assets/javascripts/action_cable.coffee.erb index d95fe78ac5..6a8b4eeb85 100644 --- a/actioncable/app/assets/javascripts/action_cable.coffee.erb +++ b/actioncable/app/assets/javascripts/action_cable.coffee.erb @@ -9,7 +9,7 @@ getConfig: (name) -> element = document.head.querySelector("meta[name='action-cable-#{name}']") - element?.getAttribute("content") + element?.getAttribute("content") ? '/cable' createWebSocketURL: (url) -> if url and not /^wss?:/i.test(url) -- cgit v1.2.3