lib/weak_parameters/validator.rb in weak_parameters-0.1.0 vs lib/weak_parameters/validator.rb in weak_parameters-0.1.1

- old
+ new

@@ -15,9 +15,13 @@ @validators ||= [] end private + def any(key, options = {}, &block) + validators << WeakParameters::AnyValidator.new(params, key, options, &block) + end + def string(key, options = {}, &block) validators << WeakParameters::StringValidator.new(params, key, options, &block) end def integer(key, options = {}, &block)