Extending Rails


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!

keyword require missing?

Hi Thanks for your answer,

turned out the Problem was that I did not have the gems in the right