demarches-normaliennes/app/services/previsualisation_service.rb
2017-04-04 16:59:38 +02:00

5 lines
186 B
Ruby

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