From b470aa4f9897fc13a425ff95b4ccdd8adc749236 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Thu, 5 Oct 2023 18:03:51 +0200 Subject: [PATCH] Skip ActionCable for Dummy Apps We don't really use ActionCable for anything as far as I know. Having it makes installing Turbo/Stimulus in extensions harder. The installer for Turbo will look for a Gemfile in `Rails.root`, which is not there in case of the dummy app, and fail. If, however, `config/cable.yml` can't be found, the Turbo installer succeeds with a message that Turbo is installed, just without the broadcasting feature (which is alright for most apps I believe). --- core/lib/generators/spree/dummy/dummy_generator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib/generators/spree/dummy/dummy_generator.rb b/core/lib/generators/spree/dummy/dummy_generator.rb index ab2b20df52a..1cb3b8b266b 100644 --- a/core/lib/generators/spree/dummy/dummy_generator.rb +++ b/core/lib/generators/spree/dummy/dummy_generator.rb @@ -44,6 +44,7 @@ def generate_test_dummy opts[:skip_yarn] = true opts[:skip_bootsnap] = true opts[:skip_javascript] = true + opts[:skip_action_cable] = true puts "Generating dummy Rails application..." invoke Rails::Generators::AppGenerator,