diff options
author | Xavier Noria <fxn@hashref.com> | 2019-05-08 20:51:07 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-05-08 20:51:07 +0200 |
commit | 44795cded6ea47c0dd46664173813c0ee7bb44b7 (patch) | |
tree | b2c17cbb32e481808ad523dd452d86c703609620 | |
parent | a6634ed0f257137ec08e9e7ef0e6ba755d980850 (diff) | |
download | rails-44795cded6ea47c0dd46664173813c0ee7bb44b7.tar.gz rails-44795cded6ea47c0dd46664173813c0ee7bb44b7.tar.bz2 rails-44795cded6ea47c0dd46664173813c0ee7bb44b7.zip |
documents how to use the classic autoloader in Rails 6 [ci skip]
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 11 |
1 files changed, 11 insertions, 0 deletions
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 ------------------------------------- |