From e1409ead258e9d2efe72b26c0ba14fab1bb8241a Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Wed, 30 Jul 2008 10:24:52 +1000 Subject: [PATCH] added :if and :unless options to list of regular options in case it wasn't obvious they are supported also some minor touch ups --- README | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 2bb7729..4ff47d7 100644 --- a/README +++ b/README @@ -7,7 +7,7 @@ Validate dates, times and datetimes for Rails 2.x. Plays nicely with new Rails 2.1 features such as automatic timezone handling and dirty attributes. Allows you -add custom formats or remove defaults easily. This you can control what you +add custom formats or remove defaults easily. This allows you to control what you think should be a valid date or time string. @@ -64,6 +64,8 @@ the valid range of dates or times allowed Regular validation options: :allow_nil - Allow a nil value to be valid :allow_blank - Allows a nil or empty string value to be valid + :if - Execute validation when :if evaluates true + :unless - Execute validation when :unless evaluates false Message options: - Use these to override the default error messages :invalid_datetime_message