mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix typo in file name
This commit is contained in:
parent
f82f68a2ef
commit
826f947ce7
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ VAT is an European tax. The file `app/models/vat.rb` defines `VAT` but the autol
|
|||
|
||||
This is the most common kind of discrepancy you may find, it has to do with acronyms. Let's understand why do we get that error message.
|
||||
|
||||
The classic autoloader is able to autoload `VAT` because its input is the name of the missing constant, `VAT`, invokes `underscore` on it, which yields `vat`, and looks for a file called `var.rb`. It works.
|
||||
The classic autoloader is able to autoload `VAT` because its input is the name of the missing constant, `VAT`, invokes `underscore` on it, which yields `vat`, and looks for a file called `vat.rb`. It works.
|
||||
|
||||
The input of the new autoloader is the file system. Give the file `vat.rb`, Zeitwerk invokes `camelize` on `vat`, which yields `Vat`, and expects the file to define the constant `Vat`. That is what the error message says.
|
||||
|
||||
|
|
Loading…
Reference in a new issue