From 11fed2c934c3703bfa3a61d8e1ccf189003c8bdb Mon Sep 17 00:00:00 2001 From: sebastiencarceles Date: Mon, 5 Dec 2022 09:52:38 +0100 Subject: [PATCH] review: champs exist because stable ids exist --- app/models/prefill_params.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/prefill_params.rb b/app/models/prefill_params.rb index 51aa52658..af6b59e9b 100644 --- a/app/models/prefill_params.rb +++ b/app/models/prefill_params.rb @@ -60,7 +60,7 @@ class PrefillParams end def prefillable? - exists? && authorized? && valid? + authorized? && valid? end def to_h @@ -72,10 +72,6 @@ class PrefillParams private - def exists? - champ.present? - end - def authorized? AUTHORIZED_TYPES_DE_CHAMPS.include?(champ.type_champ) end