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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue