提交 28a7c98f 编写于 作者: X Xavier Noria

autoloading guide: specify autoload paths are set when the app boots [ci skip]

上级 e0dbf155
......@@ -449,9 +449,10 @@ Alright, Rails has a collection of directories similar to `$LOAD_PATH` in which
to look up `post.rb`. That collection is called `autoload_paths` and by
default it contains:
* All subdirectories of `app` in the application and engines. For example,
`app/controllers`. They do not need to be the default ones, any custom
directories like `app/workers` belong automatically to `autoload_paths`.
* All subdirectories of `app` in the application and engines present at boot
time. For example, `app/controllers`. They do not need to be the default
ones, any custom directories like `app/workers` belong automatically to
`autoload_paths`.
* Any existing second level directories called `app/*/concerns` in the
application and engines.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册