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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user