demarches-normaliennes/app/services/previsualisation_service.rb

5 lines
185 B
Ruby

class PrevisualisationService
def self.delete_all_champs(dossier)
Champ.where(dossier_id: dossier.id, type_de_champ_id: dossier.procedure.types_de_champ.ids).delete_all
end
end