Remove TypeDeChampPublic/TypeDeChampPrivate STI

This commit is contained in:
Paul Chavard 2018-02-13 15:38:26 +01:00
parent 75b2e16cc0
commit 31d638ae2a
14 changed files with 58 additions and 57 deletions

View file

@ -19,7 +19,7 @@ class RootController < ApplicationController
description = 'a not so long description'
all_champs = TypeDeChamp.type_champs
.map { |name, _| TypeDeChamp.new(type_champ: name, libelle: name, description: description, mandatory: true) }
.map { |name, _| TypeDeChamp.new(type_champ: name, private: false, libelle: name, description: description, mandatory: true) }
.map.with_index { |type_de_champ, i| type_de_champ.champ.build(id: i) }
all_champs