Sha256: ccb8757acdf2de6950844381f7c33ab955bb1625f050d607907be02a0dbaa467
Contents?: true
Size: 204 Bytes
Versions: 2
Compression:
Stored size: 204 Bytes
Contents
class DateValidator < Validaty::AllowBlankBase private def valid_value?(value) Date.parse(value) true rescue Date::Error false end def default_message_error :invalid end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validaty-0.0.2 | lib/validators/date_validator.rb |
validaty-0.0.1 | lib/validators/date_validator.rb |