review: champs exist because stable ids exist

This commit is contained in:
sebastiencarceles 2022-12-05 09:52:38 +01:00
parent a5c1c68a91
commit 11fed2c934

View file

@ -60,7 +60,7 @@ class PrefillParams
end end
def prefillable? def prefillable?
exists? && authorized? && valid? authorized? && valid?
end end
def to_h def to_h
@ -72,10 +72,6 @@ class PrefillParams
private private
def exists?
champ.present?
end
def authorized? def authorized?
AUTHORIZED_TYPES_DE_CHAMPS.include?(champ.type_champ) AUTHORIZED_TYPES_DE_CHAMPS.include?(champ.type_champ)
end end