fix(prefill): it should be possible to prefill a dossier on a test procedure
This commit is contained in:
parent
54968daf17
commit
b3aeb46c1b
23 changed files with 51 additions and 136 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue