Dossier: remove useless return
This commit is contained in:
parent
56336dbc00
commit
f0373f6bc2
1 changed files with 4 additions and 4 deletions
|
@ -228,7 +228,7 @@ class Dossier < ActiveRecord::Base
|
||||||
value = serialize_value_for_export(value)
|
value = serialize_value_for_export(value)
|
||||||
hash.store(key, value)
|
hash.store(key, value)
|
||||||
end
|
end
|
||||||
return hash
|
hash
|
||||||
end
|
end
|
||||||
|
|
||||||
def full_data_strings_array
|
def full_data_strings_array
|
||||||
|
@ -245,7 +245,7 @@ class Dossier < ActiveRecord::Base
|
||||||
etablissement_attr = EtablissementSerializer.new(Etablissement.new).attributes.map { |k, v| ["etablissement.#{k}".parameterize.underscore.to_sym, v] }.to_h
|
etablissement_attr = EtablissementSerializer.new(Etablissement.new).attributes.map { |k, v| ["etablissement.#{k}".parameterize.underscore.to_sym, v] }.to_h
|
||||||
entreprise_attr = EntrepriseSerializer.new(Entreprise.new).attributes.map { |k, v| ["entreprise.#{k}".parameterize.underscore.to_sym, v] }.to_h
|
entreprise_attr = EntrepriseSerializer.new(Entreprise.new).attributes.map { |k, v| ["entreprise.#{k}".parameterize.underscore.to_sym, v] }.to_h
|
||||||
end
|
end
|
||||||
return convert_specific_hash_values_to_string(etablissement_attr.merge(entreprise_attr))
|
convert_specific_hash_values_to_string(etablissement_attr.merge(entreprise_attr))
|
||||||
end
|
end
|
||||||
|
|
||||||
def data_with_champs
|
def data_with_champs
|
||||||
|
@ -254,7 +254,7 @@ class Dossier < ActiveRecord::Base
|
||||||
data += self.ordered_champs.map(&:value)
|
data += self.ordered_champs.map(&:value)
|
||||||
data += self.ordered_champs_private.map(&:value)
|
data += self.ordered_champs_private.map(&:value)
|
||||||
data += self.export_entreprise_data.values
|
data += self.export_entreprise_data.values
|
||||||
return data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
def export_headers
|
def export_headers
|
||||||
|
@ -263,7 +263,7 @@ class Dossier < ActiveRecord::Base
|
||||||
headers += self.procedure.types_de_champ.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
headers += self.procedure.types_de_champ.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
||||||
headers += self.procedure.types_de_champ_private.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
headers += self.procedure.types_de_champ_private.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
||||||
headers += self.export_entreprise_data.keys
|
headers += self.export_entreprise_data.keys
|
||||||
return headers
|
headers
|
||||||
end
|
end
|
||||||
|
|
||||||
def followers_gestionnaires
|
def followers_gestionnaires
|
||||||
|
|
Loading…
Add table
Reference in a new issue