Remove the useless #value_for_export method

This commit is contained in:
gregoirenovel 2018-12-28 15:39:31 +01:00
parent 5fab5106cb
commit 16bccb2386

View file

@ -185,10 +185,10 @@ class ProcedureExportService
end end
values = normalize_values(values) values = normalize_values(values)
values += dossier.champs.reject(&:exclude_from_export?).map do |champ| values += dossier.champs.reject(&:exclude_from_export?).map do |champ|
value_for_export(champ) champ.for_export
end end
values += dossier.champs_private.reject(&:exclude_from_export?).map do |champ| values += dossier.champs_private.reject(&:exclude_from_export?).map do |champ|
value_for_export(champ) champ.for_export
end end
values += etablissement_data(dossier.etablissement) values += etablissement_data(dossier.etablissement)
values values
@ -245,10 +245,6 @@ class ProcedureExportService
label.parameterize.underscore.to_sym label.parameterize.underscore.to_sym
end end
def value_for_export(champ)
champ.for_export
end
def normalize_values(values) def normalize_values(values)
values.map do |value| values.map do |value|
case value case value