diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-11-14 20:14:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 20:14:03 -0500 |
commit | 6c27341fbce0e2eb12550ef4aff2bd7ef5d9dda0 (patch) | |
tree | 8682251e114df75fdfc2acda61ca3ab04da794f6 /guides | |
parent | 2a26ff80e8a08c2ac22332b52f6534cb6534bae1 (diff) | |
parent | 9d87a172ca32d60526f2b4c4ace0c5dc333f8489 (diff) | |
download | rails-6c27341fbce0e2eb12550ef4aff2bd7ef5d9dda0.tar.gz rails-6c27341fbce0e2eb12550ef4aff2bd7ef5d9dda0.tar.bz2 rails-6c27341fbce0e2eb12550ef4aff2bd7ef5d9dda0.zip |
Merge pull request #31156 from kwstannard/patch-1
Update configuring.md
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 2d03f0a61e..6e129a5680 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -1057,7 +1057,7 @@ After loading the framework and any gems in your application, Rails turns to loa NOTE: You can use subfolders to organize your initializers if you like, because Rails will look into the whole file hierarchy from the initializers folder on down. -TIP: If you have any ordering dependency in your initializers, you can control the load order through naming. Initializer files are loaded in alphabetical order by their path. For example, `01_critical.rb` will be loaded before `02_normal.rb`. +TIP: While Rails supports numbering of initializer file names for load ordering purposes, a better technique is to place any code that need to load in a specific order within the same file. This reduces file name churn, makes dependencies more explicit, and can help surface new concepts within your application. Initialization events --------------------- |