Permalink
Browse files

Merge branch 'master' of github.com:codegram/date_validator

  • Loading branch information...
2 parents 352a287 + ce4ecfe commit 16684bafc114b42ae89489389e1eb5f0f139aece @oriolgual oriolgual committed Aug 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
@@ -7,7 +7,7 @@ A simple date validator for Rails 3.
And I mean simple. In your model:
- validates :expiration_date, :date => {:after => lambda { Time.now, } :before => lambda { Time.now + 1.year } }
+ validates :expiration_date, :date => {:after => lambda { Time.now } :before => lambda { Time.now + 1.year } }
Using lambda prevents production cache issues.
For now these are the available options you can use:

0 comments on commit 16684ba

Please sign in to comment.