Skip to content

Commit

Permalink
Merge pull request #218 from bjer/master
Browse files Browse the repository at this point in the history
Deprecation warning Rails 7.1
  • Loading branch information
albus522 authored Oct 13, 2023
2 parents 6e8709f + b52b248 commit f0048d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def self.ready_to_run(worker_name, max_run_time)
end

def self.before_fork
::ActiveRecord::Base.clear_all_connections!
::ActiveRecord::Base.connection_handler.clear_all_connections!
end

def self.after_fork
Expand Down

0 comments on commit f0048d5

Please sign in to comment.