lib/cloudtasker/worker.rb in cloudtasker-0.12.1 vs lib/cloudtasker/worker.rb in cloudtasker-0.12.2

- old
+ new

@@ -359,10 +359,10 @@ # If job arguments are missing then the job will simply be declared dead. # # @return [Boolean] True if the arguments are missing. # def arguments_missing? - job_args.empty? && [0, -1].exclude?(method(:perform).arity) + job_args.empty? && ![0, -1].include?(method(:perform).arity) end # # Return the time taken (in seconds) to perform the job. This duration # includes the middlewares and the actual perform method.