review: champs exist because stable ids exist
This commit is contained in:
parent
a5c1c68a91
commit
11fed2c934
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue