From 1b895ef4881ca14ee2fb09bbe43bff6de09694dd Mon Sep 17 00:00:00 2001 From: soartec-lab Date: Tue, 7 May 2019 22:25:13 +0900 Subject: Added guide for `config.autoloader` [skip ci] --- guides/source/configuring.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'guides/source') diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 3863323bd2..2ee65bb573 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -157,6 +157,12 @@ defaults to `:debug` for all environments. The available log levels are: `:debug * `config.time_zone` sets the default time zone for the application and enables time zone awareness for Active Record. +* `config.autoloader` sets the autoloading modes. This option defaults to `:zeitwerk` if `6.0` is specified in `config.load_defaults`. Can use the classic autoloader by specifying `:classic` after the line that loads` load_defaults `. + + ```ruby + config.autoloader = :classic + ``` + ### Configuring Assets * `config.assets.enabled` a flag that controls whether the asset -- cgit v1.2.3