mirror of https://github.com/rails/rails
documents how to use the classic autoloader in Rails 6 [ci skip]
This commit is contained in:
parent
a6634ed0f2
commit
44795cded6
|
@ -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
|
||||
-------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue