Load Rails 6.1 framework defaults
What does this MR do and why?
This adds config.load_defaults 6.1
and then overrides some of the settings so that we keep existing behavior.
This is the first step for #332288 (closed) and should not change any behavior. This just makes it easier to see which settings we haven't adopted.
The defaults are documented in https://guides.rubyonrails.org/configuring.html#results-of-config-load-defaults
Notes
-
Settings for
active_storage
andaction_mailbox
are untouched since we don't load these gems. Setting these to the old defaults would raise an exception. -
For settings where we manually configured to follow the new defaults, I removed those lines since we don't need them anymore.
-
config.action_view.form_with_generates_remote_forms
was defaulted totrue
in Rails 5.1 and then defaulted back tofalse
in Rails 6.1. Since we never switched to the 5.1 default, we're already on the latest default so no need to include this in the initializer.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #332288 (closed)