Always serialize type_de_champ stable_id as id
This commit is contained in:
parent
0d9ac9ffd9
commit
d1de1587d3
2 changed files with 3 additions and 8 deletions
|
@ -44,7 +44,6 @@ module NewAdministrateur
|
|||
{
|
||||
type_de_champ: type_de_champ.as_json(
|
||||
except: [
|
||||
:id,
|
||||
:created_at,
|
||||
:options,
|
||||
:order_place,
|
||||
|
@ -64,7 +63,7 @@ module NewAdministrateur
|
|||
:piece_justificative_template_url,
|
||||
:quartiers_prioritaires
|
||||
]
|
||||
).merge(id: TypeDeChamp.format_stable_id(type_de_champ.stable_id))
|
||||
)
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue