demarches-normaliennes/app/services/previsualisation_service.rb
2016-06-14 11:59:50 +02:00

5 lines
No EOL
185 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