added fall through for restriction to do parse value

This commit is contained in:
Adam Meehan 2008-06-30 22:39:11 +10:00
parent 64a402676e
commit 6a6448130d

View File

@ -88,7 +88,9 @@ module ValidatesTimeliness
when Symbol
record.send(restriction)
when Proc
restriction.call(record)
restriction.call(record)
else
timeliness_date_time_parse(restriction)
end
next if compare.nil?