mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Fix syntax error in documentation for filename_proc
option
This commit is contained in:
parent
29249b3751
commit
85b1bccdaf
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ For even more customization, use the `filename_proc` option:
|
|||
|
||||
```ruby
|
||||
config.generators do |g|
|
||||
g.factory_bot filename_proc: -> { |table_name| "prefix_#{table_name}_suffix" }
|
||||
g.factory_bot filename_proc: ->(table_name) { "prefix_#{table_name}_suffix" }
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue