1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improve language in upgrading guide

This commit is contained in:
Brandon Conway 2021-11-17 16:29:52 -08:00 committed by GitHub
parent c5bf2b4736
commit 88dff0604f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -753,7 +753,7 @@ end
while `Bar` could not be autoloaded, autoloading `Foo` would mark `Bar` as autoloaded too. This is not the case in `zeitwerk` mode, you need to move `Bar` to its own file `bar.rb`. One file, one constant.
This affects only to constants at the same top-level as in the example above. Inner classes and modules are fine. For example, consider
This only applies to constants at the same top-level as in the example above. Inner classes and modules are fine. For example, consider
```ruby
# app/models/foo.rb