1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Update README section about generator template

The correct path use the generator name which isn't pluralized.
This commit is contained in:
Nicolas Buduroi 2019-01-20 19:27:25 -05:00 committed by Daniel Colson
parent f91bcf248f
commit 3c300ecf88

View file

@ -133,7 +133,7 @@ end
```
To override the [default factory template][], define your own template in
`lib/templates/factory_bot/models/factories.erb`. This template will have
`lib/templates/factory_bot/model/factories.erb`. This template will have
access to any methods available in `FactoryBot::Generators::ModelGenerator`.
Note that factory\_bot\_rails will only use this custom template if you are
generating each factory in a separate file; it will have no effect if you are