From 16bccb2386f0abdf7e1081f5527123f4529ac1dc Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 28 Dec 2018 15:39:31 +0100 Subject: [PATCH] Remove the useless #value_for_export method --- app/services/procedure_export_service.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/services/procedure_export_service.rb b/app/services/procedure_export_service.rb index 98263e9b7..5fff307ce 100644 --- a/app/services/procedure_export_service.rb +++ b/app/services/procedure_export_service.rb @@ -185,10 +185,10 @@ class ProcedureExportService end values = normalize_values(values) values += dossier.champs.reject(&:exclude_from_export?).map do |champ| - value_for_export(champ) + champ.for_export end values += dossier.champs_private.reject(&:exclude_from_export?).map do |champ| - value_for_export(champ) + champ.for_export end values += etablissement_data(dossier.etablissement) values @@ -245,10 +245,6 @@ class ProcedureExportService label.parameterize.underscore.to_sym end - def value_for_export(champ) - champ.for_export - end - def normalize_values(values) values.map do |value| case value