codegram/date_validator — Issue #25: add :allow_blank? option
Author: enrico
Created: 2011-12-31 16:10:03+00:00
State: open

I'd like to use it like this:

validates :date_of_birth, :date => {:after => ..., :before => ..., :message => 'is invalid' }, :allow_blank? => true , :if => :check_date?