Refactor Dossier#full_data_strings_array

This commit is contained in:
gregoirenovel 2017-04-05 15:11:44 +02:00
parent df878b9ef4
commit ae5b4f6249

View file

@ -217,12 +217,9 @@ class Dossier < ActiveRecord::Base
end
def full_data_strings_array
array = []
data_with_champs.each do |value|
value = value.to_s if !value.kind_of?(Time) && !value.nil?
array << value
data_with_champs.map do |value|
value.nil? || value.kind_of?(Time) ? value : value.to_s
end
return array
end
def export_entreprise_data