[#1421] Use delegation rather than STI for TypeDeChamp
This commit is contained in:
parent
4bb00e9875
commit
9beaa293cd
26 changed files with 82 additions and 65 deletions
|
@ -19,10 +19,6 @@ class TypesDeChampService
|
|||
|
||||
parameters[attributes].each do |index, param|
|
||||
param[:private] = private
|
||||
if param[:type_champ]
|
||||
param[:type] = TypeDeChamp.type_champ_to_class_name(param[:type_champ])
|
||||
end
|
||||
|
||||
if param[:libelle].empty?
|
||||
parameters[attributes].delete(index.to_s)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue