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
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