diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 18:17:05 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 18:17:12 +0100 |
commit | 8e9b7c0405ba9e74e656145eeee0c27a68df46ca (patch) | |
tree | 9621409ac9d50f06cc69add2b00cd37d3b517bed /actioncable/lib/rails/generators/channel/templates | |
parent | 910572fffe0b37c1d4c73fa26b849af18eab1d51 (diff) | |
download | rails-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.coffee | 2 |
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() |