mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
tightened up specs for attribute methods
This commit is contained in:
@@ -30,7 +30,7 @@ module ValidatesTimeliness
|
||||
# checks if date is valid which enforces number of days in a month unlike Time
|
||||
Date.new(*time_array[0..2])
|
||||
|
||||
# checks if time is valid and return object
|
||||
# checks if time part is valid and returns object
|
||||
Time.mktime(*time_array)
|
||||
rescue
|
||||
nil
|
||||
|
||||
Reference in New Issue
Block a user