Fallback should use a real component

This commit is contained in:
Rafael Mendonça França 2014-04-03 17:50:48 -03:00
parent 23e2ca549d
commit cf7bca77f8
1 changed files with 1 additions and 1 deletions

View File

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