fix(prefill): it should be possible to prefill a dossier on a test procedure

This commit is contained in:
Paul Chavard 2023-06-12 12:05:48 +02:00
parent 54968daf17
commit b3aeb46c1b
23 changed files with 51 additions and 136 deletions

View file

@ -10,6 +10,10 @@ class PrefillParams
build_prefill_values.filter(&:prefillable?).map(&:champ_attributes).flatten
end
def self.digest(params)
Digest::SHA256.hexdigest(params.reject { |(key, _)| key.split('_').first != "champ" }.to_json)
end
private
def build_prefill_values