Fallback should use a real component
This commit is contained in:
parent
23e2ca549d
commit
cf7bca77f8
|
@ -17,7 +17,7 @@ module SimpleForm
|
||||||
|
|
||||||
# Provide a fallback if name cannot be found.
|
# Provide a fallback if name cannot be found.
|
||||||
def find(name)
|
def find(name)
|
||||||
super || SimpleForm::Wrappers::Many.new(name, [name])
|
super || SimpleForm::Wrappers::Many.new(name, [Leaf.new(name)])
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue