Skip to content

Commit

Permalink
Use Rails 6.1 defaults
Browse files Browse the repository at this point in the history
We've been running Rails 6.1 for a while now and inline with the upgrade
documentation, we should now be using the 6.1 defaults:

https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#configure-framework-defaults

Rather than change each individual setting, we've gone all in and taken
confidence from our extensive test suite that everything is good.

This clears a path for the Rails 6 to 7 upgrade.
  • Loading branch information
mec committed Dec 4, 2024
1 parent ac1fc9e commit ef4263d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Remove Spring from development
- Switch to the Zeitwerk autoloader
- Use Rails 6.1 default configuration

## Release 153 - 2024-12-02

Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Application < Rails::Application
end

# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
config.load_defaults 6.1

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
Expand Down
67 changes: 0 additions & 67 deletions config/initializers/new_framework_defaults_6_1.rb

This file was deleted.

0 comments on commit ef4263d

Please sign in to comment.