mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +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
|
||||
record.send(restriction)
|
||||
when Proc
|
||||
restriction.call(record)
|
||||
restriction.call(record)
|
||||
else
|
||||
timeliness_date_time_parse(restriction)
|
||||
end
|
||||
|
||||
next if compare.nil?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user