Skip to content

Commit 4fae98c

Browse files
committed
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.
1 parent 19f9922 commit 4fae98c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

railties/lib/rails/generators/rails/app/app_generator.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,6 @@ def config_when_updating
160160
remove_file "config/initializers/permissions_policy.rb"
161161
end
162162
end
163-
164-
if !skip_sprockets?
165-
insert_into_file "config/application.rb", %(require "sprockets/railtie"), after: /require\(["']rails\/all["']\)\n/
166-
end
167163
end
168164

169165
def master_key

0 commit comments

Comments
 (0)