From 4fae98c259fb8de47aa14f212a56c6147d34a435 Mon Sep 17 00:00:00 2001 From: Hartley McGuire Date: Wed, 6 Jul 2022 02:25:56 -0400 Subject: [PATCH] Remove adding sprockets during app:update This was useful during the upgrade to Rails 7, but apps upgrading from 7 to 7.1 shouldn't need this line added again. --- railties/lib/rails/generators/rails/app/app_generator.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 3f4bb68538294..e9b3848a8dc47 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -160,10 +160,6 @@ def config_when_updating remove_file "config/initializers/permissions_policy.rb" end end - - if !skip_sprockets? - insert_into_file "config/application.rb", %(require "sprockets/railtie"), after: /require\(["']rails\/all["']\)\n/ - end end def master_key