SpeechLove/speech-hacker — pull request #17 by kerrieyee (2012-12-05 08:05:11+00:00)
Title: changed validation in meeting model

Previously, when user entered an invalid date format, the error would read something like "date cannot be blank" instead of "format should be YYYY-MM-DD." I changed the verify_date from the before_save filter to the before_validation filter so that if the date is blank, or invalid, this error ("format should be YYYY-MM-DD") will be raised. I also wrote tests for this validation.