Skip to content

Commit

Permalink
add a reference to automatic namespaces in the readme (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: Perry Hertler <perry.hertler@gusto.com>
Co-authored-by: Teal Stannard <teal.stannard@gusto.com>
Co-authored-by: Joey Schoblaska <joey.schoblaska@gusto.com>
  • Loading branch information
4 people authored Feb 9, 2024
1 parent 8cf656e commit f30bfbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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+).

Expand Down

0 comments on commit f30bfbb

Please sign in to comment.