From 80b416f5e692ae79f4062f59fed6c7d7648a8af0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?=
 <rafaelmfranca@gmail.com>
Date: Wed, 22 Jun 2016 14:09:27 -0300
Subject: Add option to enable dependency loading in production

This will make easier to applications that rely on having const_missing
hooks in production upgrade to Rails 5.

This option is going to be remove in the future and the default behavior
will be to disable the dependency loading.
---
 guides/source/configuring.md | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'guides')

diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index b3d3b2c681..8d22cf4504 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -94,6 +94,8 @@ application. Accepts a valid week day symbol (e.g. `:monday`).
 
 * `config.eager_load_paths` accepts an array of paths from which Rails will eager load on boot if cache classes is enabled. Defaults to every folder in the `app` directory of the application.
 
+* `config.enable_dependency_loading` when true, enable the autoload loading behavior even if the application is eager loaded and have `cache_classes` as true. Default to false.
+
 * `config.encoding` sets up the application-wide encoding. Defaults to UTF-8.
 
 * `config.exceptions_app` sets the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to `ActionDispatch::PublicExceptions.new(Rails.public_path)`.
-- 
cgit v1.2.3