From 85b1bccdafb382ec8ee5a460e880612c7fdc58c8 Mon Sep 17 00:00:00 2001 From: Aga Kowalczuk Date: Sun, 23 Sep 2018 21:16:15 +0100 Subject: [PATCH] Fix syntax error in documentation for `filename_proc` option --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8615c88..e7c2b3f 100644 --- a/README.md +++ b/README.md @@ -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 ```