Skip to content

Commit b470aa4

Browse files
mamhoffelia
authored andcommitted
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).
1 parent 5170a8e commit b470aa4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/lib/generators/spree/dummy/dummy_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def generate_test_dummy
4444
opts[:skip_yarn] = true
4545
opts[:skip_bootsnap] = true
4646
opts[:skip_javascript] = true
47+
opts[:skip_action_cable] = true
4748

4849
puts "Generating dummy Rails application..."
4950
invoke Rails::Generators::AppGenerator,

0 commit comments

Comments
 (0)