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 end
def full_data_strings_array def full_data_strings_array
array = [] data_with_champs.map do |value|
data_with_champs.each do |value| value.nil? || value.kind_of?(Time) ? value : value.to_s
value = value.to_s if !value.kind_of?(Time) && !value.nil?
array << value
end end
return array
end end
def export_entreprise_data def export_entreprise_data