refactor(champ): move champ value format methods from TypeDeChamp class to instance
This commit is contained in:
parent
cdaa94d5f6
commit
02934188b4
44 changed files with 468 additions and 523 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue