demarches-normaliennes/app/services/previsualisation_service.rb

6 lines
185 B
Ruby
Raw Normal View History

2016-06-14 11:59:50 +02:00
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
2016-06-14 11:59:50 +02:00
end
2017-04-04 15:27:04 +02:00
end