Skip to content

Commit

Permalink
instantiated klasses is no longer supported in rails
Browse files Browse the repository at this point in the history
pulling in changes from JustinAiken#23
  • Loading branch information
jdatti committed Oct 27, 2023
1 parent ee3a38c commit 1557cc5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/active_scheduler/resque_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1557cc5

Please sign in to comment.