I had a problem with the module name and folder structure.
I have a model defined as
module API module RESTv2 class User end end end
The folder structure looks like
models/api/restv2/user.rb
When I try to access the class, I get an uninitialized persistent error. However, if I change the module name to REST and the folder for / rest, I will not get an error.
I assume the problem is with the folder naming, and I tried all different combos / rest _v_2, / rest_v2, / restv_2, etc.
Any suggestions?
source share