mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
added fall through for restriction to do parse value
This commit is contained in:
@@ -89,6 +89,8 @@ module ValidatesTimeliness
|
|||||||
record.send(restriction)
|
record.send(restriction)
|
||||||
when Proc
|
when Proc
|
||||||
restriction.call(record)
|
restriction.call(record)
|
||||||
|
else
|
||||||
|
timeliness_date_time_parse(restriction)
|
||||||
end
|
end
|
||||||
|
|
||||||
next if compare.nil?
|
next if compare.nil?
|
||||||
|
|||||||
Reference in New Issue
Block a user