diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-06-17 11:21:03 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-06-17 11:21:03 +0200 |
commit | 47dd2415acbdd307a48e61a33dfd798dc8b65115 (patch) | |
tree | 8ed36a7a17382ca87bff8b4472486fd69334c9fe | |
parent | add626e3655745018bea2ee33b22f5471d47c152 (diff) | |
parent | bab64e62ec6c609ece50f5ad7e5c16e56846b263 (diff) | |
download | rails-47dd2415acbdd307a48e61a33dfd798dc8b65115.tar.gz rails-47dd2415acbdd307a48e61a33dfd798dc8b65115.tar.bz2 rails-47dd2415acbdd307a48e61a33dfd798dc8b65115.zip |
Merge pull request #90 from itolosa/master
closes #89. fix delayed job adapter timestamp
-rw-r--r-- | lib/active_job/queue_adapters/delayed_job_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_job/queue_adapters/delayed_job_adapter.rb b/lib/active_job/queue_adapters/delayed_job_adapter.rb index c0561044be..bfeaa836d2 100644 --- a/lib/active_job/queue_adapters/delayed_job_adapter.rb +++ b/lib/active_job/queue_adapters/delayed_job_adapter.rb @@ -9,7 +9,7 @@ module ActiveJob end def enqueue_at(job, timestamp, *args) - JobWrapper.new.delay(queue: job.queue_name, run_at: timestamp).perform(job, *args) + JobWrapper.new.delay(queue: job.queue_name, run_at: Time.at(timestamp)).perform(job, *args) end end |