From 44795cded6ea47c0dd46664173813c0ee7bb44b7 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 8 May 2019 20:51:07 +0200 Subject: documents how to use the classic autoloader in Rails 6 [ci skip] --- guides/source/upgrading_ruby_on_rails.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'guides') diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 65274f0946..c9ab655179 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -305,6 +305,17 @@ To fix this, just remove the wildcards: config.autoload_paths << "#{config.root}/lib" ``` +#### How to Use the Classic Autoloader in Rails 6 + +Applications can load Rails 6 defaults and still use the classic autoloader by setting `config.autoloader` this way: + +```ruby +# config/application.rb + +load_defaults "6.0" +config.autoloader = :classic +``` + Upgrading from Rails 5.1 to Rails 5.2 ------------------------------------- -- cgit v1.2.3