Remove the useless #value_for_export method
This commit is contained in:
parent
5fab5106cb
commit
16bccb2386
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue