From ec31d63c58d7ceb80f0e5b25bf5dc56effd5d89b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 7 Oct 2022 10:38:28 +0200 Subject: [PATCH] Do not import/initialize twice Already done in "controllers" --- app/webpacker/packs/application.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/webpacker/packs/application.js b/app/webpacker/packs/application.js index db0abbeeb5..86dab8481a 100644 --- a/app/webpacker/packs/application.js +++ b/app/webpacker/packs/application.js @@ -23,13 +23,4 @@ require.context("../fonts", true); const images = require.context("../images", true); const imagePath = (name) => images(name, true); -import StimulusReflex from "stimulus_reflex"; -import consumer from "../channels/consumer"; -import controller from "../controllers/application_controller"; - -application.consumer = consumer; -StimulusReflex.initialize(application, { controller, isolate: true }); -StimulusReflex.debug = process.env.RAILS_ENV === "development"; -CableReady.initialize({ consumer }); - import "controllers";