From 9a7de79e4992420e3050311243433ea41abce2d2 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 24 May 2024 13:43:08 -0300 Subject: [PATCH] fix: guardar geo como hash plano --- app/models/metadata_geo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/metadata_geo.rb b/app/models/metadata_geo.rb index ba11f337..d475edf9 100644 --- a/app/models/metadata_geo.rb +++ b/app/models/metadata_geo.rb @@ -14,7 +14,7 @@ class MetadataGeo < MetadataTemplate return true unless changed? return true if empty? - self[:value] = value.transform_values(&:to_f) + self[:value] = value.transform_values(&:to_f).to_h self[:value] = encrypt(value) if private? true