Skip to content

Commit

Permalink
Remove adding sprockets during app:update
Browse files Browse the repository at this point in the history
This was useful during the upgrade to Rails 7, but apps upgrading from 7
to 7.1 shouldn't need this line added again.
  • Loading branch information
skipkayhil committed Jul 6, 2022
1 parent 19f9922 commit 4fae98c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions railties/lib/rails/generators/rails/app/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fae98c

Please sign in to comment.