Skip to content

Commit

Permalink
Update require statement to match new location of railtie.rb. Update …
Browse files Browse the repository at this point in the history
…to use ruby 2.5 include
  • Loading branch information
hoenth committed Jan 6, 2021
1 parent 5005b20 commit d819d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/delayed_job_groups_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d819d4d

Please sign in to comment.