From a36e0e6964fe8089aa91ae09e274ca335d919fa6 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 14 Oct 2024 17:32:04 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20guardar=20valores=20=C3=BAnicos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/metadata_has_many.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/metadata_has_many.rb b/app/models/metadata_has_many.rb index 13f0dcf5..b4db4454 100644 --- a/app/models/metadata_has_many.rb +++ b/app/models/metadata_has_many.rb @@ -36,6 +36,8 @@ class MetadataHasMany < MetadataRelatedPosts def save super + self[:value] = self[:value].uniq + return true unless changed? return true unless inverse?