lib/weak_parameters/validator.rb in weak_parameters-0.4.1 vs lib/weak_parameters/validator.rb in weak_parameters-0.4.2

- old
+ new

@@ -74,9 +74,9 @@ validators << WeakParameters::ObjectValidator.new(controller, key, children, options) end def list(key, type, options = {}, &block) children = with_validators { send type, nil, options, &block } - validators << WeakParameters::ListValidator.new(controller, key, children.first) + validators << WeakParameters::ListValidator.new(controller, key, children.first, options) end end end