aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_job/queue_adapters/resque_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_job/queue_adapters/resque_adapter.rb')
-rw-r--r--lib/active_job/queue_adapters/resque_adapter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/active_job/queue_adapters/resque_adapter.rb b/lib/active_job/queue_adapters/resque_adapter.rb
index 4155cd5bf9..43a44d2a48 100644
--- a/lib/active_job/queue_adapters/resque_adapter.rb
+++ b/lib/active_job/queue_adapters/resque_adapter.rb
@@ -1,11 +1,12 @@
require 'resque'
+require 'active_job/job_wrappers/resque_wrapper'
module ActiveJob
module QueueAdapters
class ResqueAdapter
class << self
def queue(job, *args)
- Resque.enqueue(job, *args)
+ Resque.enqueue *JobWrappers::ResqueWrapper.wrap(job, args)
end
end
end