Permalink
Browse files

args.second changed to args[1] (pre-2.2 compatible)

  • Loading branch information...
1 parent 9935082 commit cf4ad9f6235a9dfeef7ff4f1ae92525945464350 @olegshaldybin olegshaldybin committed Jan 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/delayed/job.rb
View
@@ -83,7 +83,7 @@ def self.enqueue(*args, &block)
end
priority = args.first || 0
- run_at = args.second
+ run_at = args[1]
Job.create(:payload_object => object, :priority => priority.to_i, :run_at => run_at)
end
@@ -248,4 +248,4 @@ def perform
eval(@job)
end
end
-end
+end

0 comments on commit cf4ad9f

Please sign in to comment.