From 26bcf81a01bfe12e9f2ef06e4ea84e9e5fa02f9c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 16 Dec 2015 15:29:21 +0100 Subject: Move Cable to ActionCable for client-side constant to avoid conflicts --- .../lib/rails/generators/channel/templates/assets/consumer.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actioncable/lib/rails') diff --git a/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee b/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee index 5bb6ab8296..4a608cfe10 100644 --- a/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee +++ b/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee @@ -1,6 +1,6 @@ -#= require cable +#= require action_cable #= require_self #= require ./channels @App = {} -App.cable = Cable.createConsumer() +App.cable = ActionCable.createConsumer() -- cgit v1.2.3