Refactor Dossier#full_data_strings_array
This commit is contained in:
parent
df878b9ef4
commit
ae5b4f6249
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue