diff --git a/lib/simple_form/wrappers/root.rb b/lib/simple_form/wrappers/root.rb index 73ac904f..192cacbb 100644 --- a/lib/simple_form/wrappers/root.rb +++ b/lib/simple_form/wrappers/root.rb @@ -17,7 +17,7 @@ module SimpleForm # Provide a fallback if name cannot be found. def find(name) - super || SimpleForm::Wrappers::Many.new(name, [name]) + super || SimpleForm::Wrappers::Many.new(name, [Leaf.new(name)]) end private