This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.
Message originally sent by slack user U71810IPUMS
Is there a good repo to look at pack-rails
in practice?
This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.
Message originally sent by slack user U71810IPUMS
Is there a good repo to look at pack-rails
in practice?
Message originally sent by slack user U71810IPUMS
Mainly, I think I am having problems understand how the actual namespacing works with the file structure. (i.e for packs/my_domain/app/public/my_domain/my_subdomain.rb
is the object supposed to be MyDomain::MySubdomain
?)
I think some other community members may have some examples of the usage of packs-rails
. You can also check out the test suite (the rails fixture in the spec
directory) as an example. Your intuition there is correct – that path would define that constant. @gpassero also created a gem automatic_namespaces
(link) which allows you to configure this to be a bit less redundant if you’d like.
Message originally sent by slack user U71810IPUMS
Thanks!