aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:17:05 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:17:12 +0100
commit8e9b7c0405ba9e74e656145eeee0c27a68df46ca (patch)
tree9621409ac9d50f06cc69add2b00cd37d3b517bed /actioncable/lib/rails/generators/channel/templates
parent910572fffe0b37c1d4c73fa26b849af18eab1d51 (diff)
downloadrails-8e9b7c0405ba9e74e656145eeee0c27a68df46ca.tar.gz
rails-8e9b7c0405ba9e74e656145eeee0c27a68df46ca.tar.bz2
rails-8e9b7c0405ba9e74e656145eeee0c27a68df46ca.zip
@App could have been set elsewhere
Diffstat (limited to 'actioncable/lib/rails/generators/channel/templates')
-rw-r--r--actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee b/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee
index 4a608cfe10..0e3839518c 100644
--- a/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee
+++ b/actioncable/lib/rails/generators/channel/templates/assets/consumer.coffee
@@ -2,5 +2,5 @@
#= require_self
#= require ./channels
-@App = {}
+@App ||= {}
App.cable = ActionCable.createConsumer()