diff options
author | Javan Makhmali <javan@javan.us> | 2016-03-03 21:27:52 -0500 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2016-03-03 21:27:52 -0500 |
commit | 6689d7c7b9c17e3e2512060c560635ce2de9ef99 (patch) | |
tree | c68c0f76858013cb9b11d50ad10d06ec209a4c08 /actioncable/app | |
parent | 5e84b9557868fe19c45f4da89d448e40b87a1f52 (diff) | |
download | rails-6689d7c7b9c17e3e2512060c560635ce2de9ef99.tar.gz rails-6689d7c7b9c17e3e2512060c560635ce2de9ef99.tar.bz2 rails-6689d7c7b9c17e3e2512060c560635ce2de9ef99.zip |
Share default mount path with client side .js
Diffstat (limited to 'actioncable/app')
-rw-r--r-- | actioncable/app/assets/javascripts/action_cable.coffee.erb | 2 |
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 d2dd8ce25f..f0422d9d9c 100644 --- a/actioncable/app/assets/javascripts/action_cable.coffee.erb +++ b/actioncable/app/assets/javascripts/action_cable.coffee.erb @@ -5,7 +5,7 @@ INTERNAL: <%= ActionCable::INTERNAL.to_json %> createConsumer: (url) -> - url ?= @getConfig("url") ? "/cable" + url ?= @getConfig("url") ? @INTERNAL.default_mount_path new ActionCable.Consumer @createWebSocketURL(url) getConfig: (name) -> |