On page 166, in the file lib/pento/catalog/product.ex
, the example code instructs the reader to use the following import statement: alias Pento.Catalog.Rating
.
This produces an error in ElixirLS because the Rating
module is not located in the Pento.Catalog
module namespace. The error reads: invalid association
ratings in schema Pento.Catalog.Product: associated schema Rating does not exist (Elixir)
The import statement should be corrected to read: alias Pento.Survey.Rating