Remove some useless self mentions
This commit is contained in:
parent
0b7cf3ae75
commit
f020fa9e2b
1 changed files with 6 additions and 6 deletions
|
@ -152,18 +152,18 @@ class Dossier < ApplicationRecord
|
||||||
def to_sorted_values
|
def to_sorted_values
|
||||||
serialized_dossier = DossierTableExportSerializer.new(self)
|
serialized_dossier = DossierTableExportSerializer.new(self)
|
||||||
values = serialized_dossier.attributes.values
|
values = serialized_dossier.attributes.values
|
||||||
values += self.ordered_champs.map(&:for_export)
|
values += ordered_champs.map(&:for_export)
|
||||||
values += self.ordered_champs_private.map(&:for_export)
|
values += ordered_champs_private.map(&:for_export)
|
||||||
values += self.export_etablissement_data.values
|
values += export_etablissement_data.values
|
||||||
values
|
values
|
||||||
end
|
end
|
||||||
|
|
||||||
def export_headers
|
def export_headers
|
||||||
serialized_dossier = DossierTableExportSerializer.new(self)
|
serialized_dossier = DossierTableExportSerializer.new(self)
|
||||||
headers = serialized_dossier.attributes.keys
|
headers = serialized_dossier.attributes.keys
|
||||||
headers += self.procedure.types_de_champ.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
headers += 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 += procedure.types_de_champ_private.order(:order_place).map { |types_de_champ| types_de_champ.libelle.parameterize.underscore.to_sym }
|
||||||
headers += self.export_etablissement_data.keys
|
headers += export_etablissement_data.keys
|
||||||
headers
|
headers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue