From e4047002dd344e5706dc53ec71629943c89d0df2 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Wed, 4 Dec 2024 17:29:20 +0900 Subject: [PATCH] Fix copy-paste error for exclusions --- lib/evil_seed/configuration/root.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/evil_seed/configuration/root.rb b/lib/evil_seed/configuration/root.rb index 2028e9e..f8e5aae 100644 --- a/lib/evil_seed/configuration/root.rb +++ b/lib/evil_seed/configuration/root.rb @@ -29,7 +29,7 @@ def exclude(*association_patterns) @exclusions << pattern else path_prefix = model.constantize.model_name.singular - @inclusions += compile_patterns(pattern, prefix: path_prefix).map { |p| Regexp.new(/\A#{p}\z/) } + @exclusions += compile_patterns(pattern, prefix: path_prefix).map { |p| Regexp.new(/\A#{p}\z/) } end end end