This is a tricky one to explain. I have a module in another module namespace like so:
# app/models/points/calculator.rb module Points module Calculator de
If someone is having this issue in rails 6 which has zeitwerk autoloader,
zeitwerk
Change ruby constant lookup back to classic in your application.rb
application.rb
# config/application.rb #... config.autoloader = :classic #...
Read more details here Rails Official Guides