Build Dossier champ only once
This commit is contained in:
parent
b235e7f403
commit
5897464224
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue