mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix set_autoload_paths and set_load_path document
This commit is contained in:
parent
5e36c5057a
commit
02d57b6270
1 changed files with 2 additions and 2 deletions
|
@ -1043,9 +1043,9 @@ Below is a comprehensive list of all the initializers found in Rails in the orde
|
||||||
|
|
||||||
* `action_mailer.compile_config_methods` Initializes methods for the config settings specified so that they are quicker to access.
|
* `action_mailer.compile_config_methods` Initializes methods for the config settings specified so that they are quicker to access.
|
||||||
|
|
||||||
* `set_load_path` This initializer runs before `bootstrap_hook`. Adds the `vendor`, `lib`, all directories of `app` and any paths specified by `config.load_paths` to `$LOAD_PATH`.
|
* `set_load_path` This initializer runs before `bootstrap_hook`. Adds paths specified by `config.load_paths` and all autoload paths to `$LOAD_PATH`.
|
||||||
|
|
||||||
* `set_autoload_paths` This initializer runs before `bootstrap_hook`. Adds all sub-directories of `app` and paths specified by `config.autoload_paths` to `ActiveSupport::Dependencies.autoload_paths`.
|
* `set_autoload_paths` This initializer runs before `bootstrap_hook`. Adds all sub-directories of `app` and paths specified by `config.autoload_paths`, `config.eager_load_paths` and `config.autoload_once_paths` to `ActiveSupport::Dependencies.autoload_paths`.
|
||||||
|
|
||||||
* `add_routing_paths` Loads (by default) all `config/routes.rb` files (in the application and railties, including engines) and sets up the routes for the application.
|
* `add_routing_paths` Loads (by default) all `config/routes.rb` files (in the application and railties, including engines) and sets up the routes for the application.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue