1
0
Fork 0
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:
Aga Kowalczuk 2018-09-23 21:16:15 +01:00 committed by Daniel Colson
parent 29249b3751
commit 85b1bccdaf

View file

@ -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
```