From e9693a23a5b6fee9bdc6baa99c14e2b342c55a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sun, 3 Mar 2019 11:08:27 +0100 Subject: [PATCH] remove channels since we don't use ActionCable --- app/javascript/channels/application.js | 9 --------- app/javascript/channels/consummer.js | 6 ------ app/javascript/channels/index.js | 5 ----- 3 files changed, 20 deletions(-) delete mode 100644 app/javascript/channels/application.js delete mode 100644 app/javascript/channels/consummer.js delete mode 100644 app/javascript/channels/index.js diff --git a/app/javascript/channels/application.js b/app/javascript/channels/application.js deleted file mode 100644 index 9334135..0000000 --- a/app/javascript/channels/application.js +++ /dev/null @@ -1,9 +0,0 @@ -// This file is automatically compiled by Webpack, along with any other files -// present in this directory. You're encouraged to place your actual application logic in -// a relevant structure within app/javascript and only use these pack files to reference -// that code so it'll be compiled. - -require("@rails/ujs").start() -require("turbolinks").start() -require("@rails/activestorage").start() -require("channels") diff --git a/app/javascript/channels/consummer.js b/app/javascript/channels/consummer.js deleted file mode 100644 index 0eceb59..0000000 --- a/app/javascript/channels/consummer.js +++ /dev/null @@ -1,6 +0,0 @@ -// 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 { createConsumer } from "@rails/actioncable" - -export default createConsumer() diff --git a/app/javascript/channels/index.js b/app/javascript/channels/index.js deleted file mode 100644 index 0cfcf74..0000000 --- a/app/javascript/channels/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// Load all the channels within this directory and all subdirectories. -// Channel files must be named *_channel.js. - -const channels = require.context('.', true, /_channel\.js$/) -channels.keys().forEach(channels)