diff options
Diffstat (limited to 'lib/active_job/queue_adapters/queue_classic_adapter.rb')
-rw-r--r-- | lib/active_job/queue_adapters/queue_classic_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/active_job/queue_adapters/queue_classic_adapter.rb b/lib/active_job/queue_adapters/queue_classic_adapter.rb index d0e2e1aa22..eacc6b5548 100644 --- a/lib/active_job/queue_adapters/queue_classic_adapter.rb +++ b/lib/active_job/queue_adapters/queue_classic_adapter.rb @@ -4,18 +4,18 @@ module ActiveJob module QueueAdapters class QueueClassicAdapter class << self - def queue(job, *args) + def enqueue(job, *args) QC::Queue.new(job.queue_name).enqueue("#{JobWrapper.name}.perform", job, *args) end - def queue_at(job, timestamp, *args) + def enqueue_at(job, timestamp, *args) raise NotImplementedError end end class JobWrapper def self.perform(job, *args) - job.new.perform *Parameters.deserialize(args) + job.new.perform_with_deserialization *args end end end |