aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/app/assets/javascripts
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2016-02-04 22:33:46 -0500
committerJon Moss <me@jonathanmoss.me>2016-02-24 19:05:03 -0500
commit8b69f1eeba753c38364fb88136b2503480f2de1d (patch)
tree6c855e3aaeaf1de00d6d92da22ae4d1d90785e33 /actioncable/app/assets/javascripts
parentb5431d7843cc286586a5ed43c1f92e35cacec07e (diff)
downloadrails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.gz
rails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.bz2
rails-8b69f1eeba753c38364fb88136b2503480f2de1d.zip
Enable Action Cable routes by default
This also marks Action Cable routes as internal to Rails.
Diffstat (limited to 'actioncable/app/assets/javascripts')
-rw-r--r--actioncable/app/assets/javascripts/action_cable.coffee.erb2
1 files changed, 1 insertions, 1 deletions
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)