Eliminating Superfluous Namespace Directories in Rails with the Automatic Namespaces Gem

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

A few weeks ago, I asked the community here about the idea of modifying the Rails autoloading rules to eliminate the need for “superfluous” namespace directories in a strongly namespaced pack.

There didn’t seem to be an existing way to do this, but @AlexEvanczuk helped me build one!

Check out the automatic_namespaces gem (https://github.com/gap777/automatic_namespaces).

Message originally sent by slack user U715TW4PT5O

This looks really cool - I actually got thrown setting up Packwerk the first time because I expected this to be the case already and so none of my code was been autoloaded :see_no_evil:

This is awesome! Great work on this Gary :raised_hands: