refactor(champ): remove stable_id delegate to type_de_champ
This commit is contained in:
parent
7a80574afc
commit
ee56a7da21
2 changed files with 1 additions and 2 deletions
|
@ -50,7 +50,6 @@ class Champ < ApplicationRecord
|
||||||
:siret?,
|
:siret?,
|
||||||
:carte?,
|
:carte?,
|
||||||
:datetime?,
|
:datetime?,
|
||||||
:stable_id,
|
|
||||||
:mandatory?,
|
:mandatory?,
|
||||||
:prefillable?,
|
:prefillable?,
|
||||||
:refresh_after_update?,
|
:refresh_after_update?,
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe Champs::CarteChamp do
|
||||||
let(:feature_collection) {
|
let(:feature_collection) {
|
||||||
{
|
{
|
||||||
type: 'FeatureCollection',
|
type: 'FeatureCollection',
|
||||||
id: champ.type_de_champ.stable_id,
|
id: champ.stable_id,
|
||||||
bbox: champ.bounding_box,
|
bbox: champ.bounding_box,
|
||||||
features: features
|
features: features
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue