Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cf4ad9f6235a9dfeef7ff4f1ae92525945464350 1 parent 9935082
@olegshaldybin olegshaldybin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/delayed/job.rb
View
4 lib/delayed/job.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.