From d54c916efc5e9059e6a5bf290228e8e75cdf4ffd Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Oct 2023 17:02:30 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20usar=20la=20intersecci=C3=B3n=20de?= =?UTF-8?q?=20las=20arrays=20para=20sanitizar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/metadata_predefined_array.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/metadata_predefined_array.rb b/app/models/metadata_predefined_array.rb index dfcb2037..babaa35a 100644 --- a/app/models/metadata_predefined_array.rb +++ b/app/models/metadata_predefined_array.rb @@ -23,8 +23,6 @@ class MetadataPredefinedArray < MetadataArray def sanitize(value) value = super(value) - value.select do |v| - values.values.include? v - end + value & values.values end end