We have decided to wrap each of our model classes in a module, where the module name is currently the same across all models and is the name of the application. So, for example, we have:
module SpringBase class User < ActiveRecord::Base ... end end
My reading suggests that I should site all model files in the directory app/models/spring_base/ to, I hope, help Rails to find them when I have code such as user=SpringBase::User.new in my controller logic.
Is this the correct approach?
Thanks.