I have a project where I created a new file in an existing directory. This new file is unable to load any classes from outside directories even though an existing file in the same directory is able to load those same classes just fine.
::V2::Serializer
works fine in the existing file but not in this new file. The new file throws this error.
<code>NameError: uninitialized constant ::V2::FullRecipeSerializer.new(
^^^^
</code>
<code>NameError: uninitialized constant ::V2::FullRecipeSerializer.new(
^^^^
</code>
NameError: uninitialized constant ::V2::FullRecipeSerializer.new(
^^^^
Both the old and new file are in the same directory.
I have tried adding require "path_to_serializer
in the new file but get a cannot load file error.