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