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:
parent
f91bcf248f
commit
3c300ecf88
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ end
|
||||||
```
|
```
|
||||||
|
|
||||||
To override the [default factory template][], define your own template in
|
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`.
|
access to any methods available in `FactoryBot::Generators::ModelGenerator`.
|
||||||
Note that factory\_bot\_rails will only use this custom template if you are
|
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
|
generating each factory in a separate file; it will have no effect if you are
|
||||||
|
|
Loading…
Reference in a new issue