Skip to content

Commit 7193066

Browse files
authored
Merge pull request #279 from rubocop-hq/config-load_defaults
Add a guideline to load config defaults
2 parents cd6da97 + c6a7202 commit 7193066

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ config.assets.precompile += %w( rails_admin/rails_admin.css rails_admin/rails_ad
9999

100100
Keep configuration that's applicable to all environments in the `config/application.rb` file.
101101

102+
=== Load Rails Config Defaults [[config-defaults]]
103+
104+
When upgrading to a newer Rails version, your application's configuration setting will remain on the previous version. To take advantage of the latest recommended Rails practices, the `config.load_defaults` setting should match your Rails version.
105+
106+
[source,ruby]
107+
----
108+
# good
109+
config.load_defaults 6.1
110+
----
111+
102112
=== Staging Like Prod [[staging-like-prod]]
103113

104114
Create an additional `staging` environment that closely resembles the `production` one.

0 commit comments

Comments
 (0)