If it is a class, why are you encapsulating it inside a module? You
should be able to put the class rb file in your lib directory and use
it in your controller. Make sure you name the file right. Again if
you need to namespace it inside a module, just include the module in
your controller using a “include ModuleName;” This will remove the
need to do Module::Class every time. You can just use the ClassName
afterwards, you don’t need to box it with a ModuleName::ClassName