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