You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,8 @@ application. Accepts a valid week day symbol (e.g. `:monday`).
94
94
95
95
*`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.
96
96
97
+
*`config.enable_dependency_loading`whentrue, enable the autoload loading behavior even if the application is eager loaded and have `cache_classes` as true. Default to false.
98
+
97
99
*`config.encoding` sets up the application-wide encoding. Defaults to UTF-8.
98
100
99
101
*`config.exceptions_app` sets the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to `ActionDispatch::PublicExceptions.new(Rails.public_path)`.
0 commit comments