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