demarches-normaliennes/app/services/previsualisation_service.rb

5 lines
185 B
Ruby
Raw Normal View History

2016-06-14 11:59:50 +02:00
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