Checking on entreprise has no sense, check etablissement
This commit is contained in:
parent
12cda1739b
commit
031522cf42
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def export_etablissement_data
|
||||
if entreprise.present?
|
||||
if etablissement.present?
|
||||
etablissement_attr = EtablissementCsvSerializer.new(self.etablissement).attributes.transform_keys { |k| "etablissement.#{k}".parameterize.underscore.to_sym }
|
||||
entreprise_attr = EntrepriseSerializer.new(self.entreprise).attributes.transform_keys { |k| "entreprise.#{k}".parameterize.underscore.to_sym }
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue