bugfix: http://github.com/javan/whenever/issues#issue/32 - comparison Time with 0 failed
This commit is contained in:
parent
e3ea5d6336
commit
efd3dd752e
@ -60,7 +60,7 @@ module Whenever
|
||||
end
|
||||
|
||||
if shortcut
|
||||
if @at > 0
|
||||
if @at.is_a?(Time) || (@at.is_a?(Numeric) && @at>0)
|
||||
raise ArgumentError, "You cannot specify an ':at' when using the shortcuts for times."
|
||||
else
|
||||
return shortcut
|
||||
|
Loading…
Reference in New Issue
Block a user