This commit is contained in:
Dan Hixon 2009-12-19 06:29:22 +08:00 committed by Javan Makhmali
parent e3ea5d6336
commit efd3dd752e

View File

@ -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