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
|
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
|
||||||
|
|
Loading…
Reference in a new issue