lib/weak_parameters/validator.rb in weak_parameters-0.4.2 vs lib/weak_parameters/validator.rb in weak_parameters-0.4.3
- old
+ new
@@ -63,9 +63,17 @@
def float(key, options = {}, &block)
validators << WeakParameters::FloatValidator.new(controller, key, options, &block)
end
+ def date(key, options = {}, &block)
+ validators << WeakParameters::DateValidator.new(controller, key, options, &block)
+ end
+
+ def time(key, options = {}, &block)
+ validators << WeakParameters::TimeValidator.new(controller, key, options, &block)
+ end
+
def file(key, options = {}, &block)
validators << WeakParameters::FileValidator.new(controller, key, options, &block)
end
def object(key, options = {}, &block)