I have a module called user_searches. It performs some search queries that are not the basis for the user model, so I put the responsibility elsewhere. I want to organize all my models, like these, that perform non-core user functions in a lib subfolder called a user. Right now, to include module methods in the User model, I need to put ...
require 'user/user_searches' class User < ActiveRecord::Base include UserSearches end
... I do not need a request if the file is located directly in the lib folder, but do it in a subfolder. What do I need to do, I do not need a request?
source share