Skip to content

Commit

Permalink
Merge pull request collectiveidea#191 from collectiveidea/revert-172-…
Browse files Browse the repository at this point in the history
…fix/autoload

Revert "Fix Rails autoloading"
  • Loading branch information
albus522 authored Mar 26, 2021
2 parents 001b246 + 0935061 commit cb5dce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
14 changes: 0 additions & 14 deletions lib/delayed/backend/active_record/railtie.rb

This file was deleted.

11 changes: 3 additions & 8 deletions lib/delayed_job_active_record.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# frozen_string_literal: true

require "active_record"
require "delayed_job"
require "delayed/backend/active_record"

if defined?(Rails::Railtie)
require "delayed/backend/active_record/railtie"
else
require "active_record"
require "delayed/backend/active_record"

Delayed::Worker.backend = :active_record
end
Delayed::Worker.backend = :active_record

0 comments on commit cb5dce5

Please sign in to comment.