refactor(champ): move champ value format methods from TypeDeChamp class to instance

This commit is contained in:
Paul Chavard 2024-10-21 11:51:34 +02:00
parent cdaa94d5f6
commit 02934188b4
No known key found for this signature in database
44 changed files with 468 additions and 523 deletions

View file

@ -17,7 +17,7 @@ class ChampSerializer < ActiveModel::Serializer
when GeoArea
object.geometry
else
object.for_api
object.type_de_champ.champ_value_for_api(object, version: 1)
end
end