Merge branch 'integration' of github.com:javan/whenever into integration

This commit is contained in:
Javan Makhmali 2010-04-26 12:09:49 -04:00
commit 4ddb2c15ff

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