Skip to content

Commit 2ddf544

Browse files
authored
Skip solid_cable gem if skip_action_cable is set (rails#52919)
This fixes the failing test AppGeneratorTest#test_app_update_does_not_generate_action_cable_contents_when_skip_action_cable_is_given
1 parent af74fc6 commit 2ddf544

File tree

1 file changed

+2
-0
lines changed
  • railties/lib/rails/generators/rails/app/templates

1 file changed

+2
-0
lines changed

railties/lib/rails/generators/rails/app/templates/Gemfile.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ gem "tzinfo-data", platforms: %i[ <%= bundler_windows_platforms %> jruby ]
1616
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
1717
gem "solid_cache"
1818
gem "solid_queue"
19+
<% unless options.skip_action_cable? -%>
1920
gem "solid_cable"
2021
<% end -%>
22+
<% end -%>
2123
<% if depend_on_bootsnap? -%>
2224

2325
# Reduces boot times through caching; required in config/boot.rb

0 commit comments

Comments
 (0)