diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2019-02-04 16:22:00 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2019-02-04 16:22:00 -0800 |
commit | 1fc3a2cc1b13fdbd570f71b2c13973819589d21e (patch) | |
tree | 2091cf8a5815bb61ff04935efdad7daa220b9f4c /actioncable/lib | |
parent | 116a519d3065e0ef315cf31381ce3e74c36cc08e (diff) | |
download | rails-1fc3a2cc1b13fdbd570f71b2c13973819589d21e.tar.gz rails-1fc3a2cc1b13fdbd570f71b2c13973819589d21e.tar.bz2 rails-1fc3a2cc1b13fdbd570f71b2c13973819589d21e.zip |
Match rails generator output
Diffstat (limited to 'actioncable/lib')
-rw-r--r-- | actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt b/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt index eec7e54b8a..0eceb59b18 100644 --- a/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt +++ b/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt @@ -1,6 +1,6 @@ // Action Cable provides the framework to deal with WebSockets in Rails. // You can generate new channels where WebSocket features live using the `rails generate channel` command. -import ActionCable from "@rails/actioncable" +import { createConsumer } from "@rails/actioncable" -export default ActionCable.createConsumer() +export default createConsumer() |