mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
added fall through for restriction to do parse value
This commit is contained in:
parent
64a402676e
commit
6a6448130d
@ -88,7 +88,9 @@ module ValidatesTimeliness
|
|||||||
when Symbol
|
when Symbol
|
||||||
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?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user