Skip to content

Commit

Permalink
args.second changed to args[1] (pre-2.2 compatible)
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshaldybin committed Jan 4, 2009
1 parent 9935082 commit cf4ad9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/delayed/job.rb
Expand Up @@ -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
Expand Down Expand Up @@ -248,4 +248,4 @@ def perform
eval(@job)
end
end
end
end

0 comments on commit cf4ad9f

Please sign in to comment.