rubyatscale / packs-rails

packs-rails establishes and implements a set of conventions for splitting up large monoliths.
MIT License
268 stars 26 forks source link

Modulize packs #67

Closed LuukvH closed 8 months ago

LuukvH commented 12 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.

alexevanczuk commented 12 months ago

Yes this is possible! Try this: https://github.com/gap777/automatic_namespaces

sethherr commented 10 months ago

I think this would be a great thing to add to packs-rails and document!