Simplify code

This commit is contained in:
gregoirenovel 2018-12-28 15:40:02 +01:00
parent 16bccb2386
commit 4b4eb6d53e

View file

@ -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