set value nil if invalid

This commit is contained in:
Adam Meehan 2008-05-02 19:07:48 +10:00
parent dff7900c4a
commit 8072fe733e

View File

@ -39,6 +39,7 @@ module ValidatesTimeliness
end
end
rescue
record.send(attr_name + "=", nil)
record.errors.add(attr_name, "is not a valid time")
next
end