From 1557cc5b16615080122dd88cadecd5b099215ab6 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 26 Oct 2023 21:44:31 -0600 Subject: [PATCH] instantiated klasses is no longer supported in rails pulling in changes from https://github.com/JustinAiken/active_scheduler/pull/23 --- lib/active_scheduler/resque_wrapper.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/active_scheduler/resque_wrapper.rb b/lib/active_scheduler/resque_wrapper.rb index e88dd6b..7c4fd33 100644 --- a/lib/active_scheduler/resque_wrapper.rb +++ b/lib/active_scheduler/resque_wrapper.rb @@ -29,10 +29,7 @@ def self.wrap(schedule) class_name = opts[:class] || job next if class_name =~ /#{self.to_s}/ - klass = class_name.constantize - next unless klass <= ActiveJob::Base - - queue = opts[:queue] || klass.queue_name + queue = opts[:queue] args = opts[:args] named_args = opts[:named_args] || false