Fix nutriscore rake task

This commit is contained in:
Paul Chavard 2018-11-08 14:37:16 +01:00
parent 6706b9004f
commit ebaecd1edd

View file

@ -67,6 +67,9 @@ namespace :'2018_07_31_nutriscore' do
libelle: 'Numéro SIRET'
)
) do |d, target_tdc|
if d.etablissement.present?
d.etablissement.signature = d.etablissement.sign
end
target_tdc.champ.create(
value: d.etablissement&.siret,
etablissement: d.etablissement,