Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modulize packs #67

Closed
LuukvH opened this issue Oct 30, 2023 · 2 comments · Fixed by #84
Closed

Modulize packs #67

LuukvH opened this issue Oct 30, 2023 · 2 comments · Fixed by #84

Comments

@LuukvH
Copy link

LuukvH commented Oct 30, 2023

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
Copy link
Contributor

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

@sethherr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants