Build Dossier champ only once

This commit is contained in:
simon lehericey 2019-09-24 06:57:23 +02:00
parent b235e7f403
commit 5897464224

View file

@ -197,7 +197,7 @@ class Dossier < ApplicationRecord
before_validation :update_state_dates, if: -> { state_changed? }
before_save :build_default_champs, if: Proc.new { groupe_instructeur_id_changed? }
before_save :build_default_champs, if: Proc.new { groupe_instructeur_id_was.nil? }
before_save :build_default_individual, if: Proc.new { procedure.for_individual? }
before_save :update_search_terms