Closed LuukvH closed 8 months ago
This might be more of a question is it possible to have everything in a pack modulized. Without creating the nested folders for example:
- Packages └ Sales |- App │ ├─ models │ │ └ Lead.rb │ └─ Controllers
And lead is modulized as shown below.
module Sales class Lead end end
I know its possible to change the file structure however i don't like have even deeper nesting of folders for autoloading to pick this up.
Yes this is possible! Try this: https://github.com/gap777/automatic_namespaces
I think this would be a great thing to add to packs-rails and document!
packs-rails
This might be more of a question is it possible to have everything in a pack modulized. Without creating the nested folders for example:
And lead is modulized as shown below.
I know its possible to change the file structure however i don't like have even deeper nesting of folders for autoloading to pick this up.