lib/phlexi/form/structure/namespace_collection.rb in phlexi-form-0.5.7 vs lib/phlexi/form/structure/namespace_collection.rb in phlexi-form-0.5.8
- old
+ new
@@ -13,10 +13,10 @@
@block.call(namespace)
end
params = params[key]
params = params.values if params.is_a?(Hash)
- inputs = params.map { |param| namespace.extract_input([param]) }
+ inputs = Array(params).map { |param| namespace.extract_input([param]) }
{key => inputs}
end
end
end
end