Simplify code
This commit is contained in:
parent
16bccb2386
commit
4b4eb6d53e
1 changed files with 2 additions and 6 deletions
|
@ -184,12 +184,8 @@ class ProcedureExportService
|
|||
end
|
||||
end
|
||||
values = normalize_values(values)
|
||||
values += dossier.champs.reject(&:exclude_from_export?).map do |champ|
|
||||
champ.for_export
|
||||
end
|
||||
values += dossier.champs_private.reject(&:exclude_from_export?).map do |champ|
|
||||
champ.for_export
|
||||
end
|
||||
values += dossier.champs.reject(&:exclude_from_export?).map(&:for_export)
|
||||
values += dossier.champs_private.reject(&:exclude_from_export?).map(&:for_export)
|
||||
values += etablissement_data(dossier.etablissement)
|
||||
values
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue