From b1f08a965ff9c01e681982c020f181e2178a07bf Mon Sep 17 00:00:00 2001 From: Ashley Willard Date: Fri, 9 Feb 2024 13:40:25 -0800 Subject: [PATCH] add a reference to automatic namespaces in the readme Co-authored-by: Perry Hertler Co-authored-by: Teal Stannard Co-authored-by: Joey Schoblaska --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4052e0d..d9dd368 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ From there, you can create a `./packs` folder and structure it using the convent If you wish to use a different directory name, eg `components` instead of `packs`, you can customize this by configuring `packs.yml`. See [`packs`](https://github.com/rubyatscale/packs) for more information. +If you want to have your packs code namespaced without adding a directory with the pack's name into the directory structure, you can use the [automatic namespaces gem](https://github.com/gap777/automatic_namespaces). + ### Splitting routes `packs-rails` allows you to split your application routes for every pack. You just have to create a file describing your routes and then `draw` them in your root `config/routes.rb` file (NOTE: the `draw` function is only in Rails 6.1+).