Skip to content

Commit

Permalink
refactor(champ): remove stable_id delegate to type_de_champ
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Apr 15, 2024
1 parent d857ad1 commit e677bb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/champ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class Champ < ApplicationRecord
:siret?,
:carte?,
:datetime?,
:stable_id,
:mandatory?,
:prefillable?,
:refresh_after_update?,
Expand Down
2 changes: 1 addition & 1 deletion spec/models/champs/carte_champ_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
let(:feature_collection) {
{
type: 'FeatureCollection',
id: champ.type_de_champ.stable_id,
id: champ.stable_id,
bbox: champ.bounding_box,
features: features
}
Expand Down

0 comments on commit e677bb1

Please sign in to comment.