# frozen_string_literal: true

require 'active_support'
require 'active_record'
require 'delayed_job'
require 'delayed_job_active_record'
require 'delayed/job_groups/compatibility'
require 'delayed/job_groups/job_extensions'
require 'delayed/job_groups/job_group'
require 'delayed/job_groups/plugin'
require 'delayed/job_groups/yaml_loader'
require 'delayed/job_groups/version'

if defined?(Delayed::Backend::ActiveRecord)
  if defined?(Rails::Railtie)
    # Postpone initialization to railtie for correct order
    require 'delayed/job_groups/backend/active_record/railtie'
  else
    # Do the same as in the railtie
    Delayed::Backend::ActiveRecord::Job.send(:include, Delayed::JobGroups::JobExtensions)
  end
end


Delayed::Worker.plugins << Delayed::JobGroups::Plugin

# frozen_string_literal: true

require 'active_support'
require 'active_record'
require 'delayed_job'
require 'delayed_job_active_record'
require 'delayed/job_groups/compatibility'
require 'delayed/job_groups/job_extensions'
require 'delayed/job_groups/job_group'
require 'delayed/job_groups/plugin'
require 'delayed/job_groups/yaml_loader'
require 'delayed/job_groups/version'

if defined?(Delayed::Backend::ActiveRecord)
  if defined?(Rails::Railtie)
    # Postpone initialization to railtie for correct order
    require 'delayed/job_groups/railtie'
  else
    # Do the same as in the railtie
    Delayed::Backend::ActiveRecord::Job.include(Delayed::JobGroups::JobExtensions)
  end
end


Delayed::Worker.plugins << Delayed::JobGroups::Plugin

Update require statement to match new location of railtie.rb. Update to use ruby 2.5 include
Update require statement to match new location of railtie.rb. Update to use ruby 2.5 include
