mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
limit time_array size explicity
This commit is contained in:
parent
6d12790d2b
commit
613001791a
@ -20,8 +20,7 @@ module ValidatesTimeliness
|
|||||||
|
|
||||||
return date if type == :date
|
return date if type == :date
|
||||||
|
|
||||||
# Create time object which checks time part, and return time object
|
make_time(time_array[0..7])
|
||||||
make_time(time_array)
|
|
||||||
rescue
|
rescue
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user