I am not sure how to extend Rails. I want to write a class where I can
Access my Models, like “User.all”.
I tried to add a class in the lib/ folder but then ruby complains that
e.g. “User.all” with "NameError: uninitialized constant "
Is there a way to inherit my Rails functionality in a ruby class in
the /lib folder? Or am I going in the conplete wrong direction?
Thanks and all the best!