From d819d4dc1cbfa86836319e551e94798d0e1efa27 Mon Sep 17 00:00:00 2001 From: Thomas Hoen Date: Wed, 6 Jan 2021 17:48:52 -0500 Subject: [PATCH] Update require statement to match new location of railtie.rb. Update to use ruby 2.5 include --- lib/delayed_job_groups_plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/delayed_job_groups_plugin.rb b/lib/delayed_job_groups_plugin.rb index fe7ccf7..1c69651 100644 --- a/lib/delayed_job_groups_plugin.rb +++ b/lib/delayed_job_groups_plugin.rb @@ -14,10 +14,10 @@ if defined?(Delayed::Backend::ActiveRecord) if defined?(Rails::Railtie) # Postpone initialization to railtie for correct order - require 'delayed/job_groups/backend/active_record/railtie' + require 'delayed/job_groups/railtie' else # Do the same as in the railtie - Delayed::Backend::ActiveRecord::Job.send(:include, Delayed::JobGroups::JobExtensions) + Delayed::Backend::ActiveRecord::Job.include(Delayed::JobGroups::JobExtensions) end end