Skip to content

Commit

Permalink
Use the provided databse configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrypower committed May 4, 2020
1 parent 4671e33 commit 8a2b326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/que/active_record/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
# Check out a PG::Connection object from ActiveRecord's pool.
def checkout
wrap_in_rails_executor do
::ActiveRecord::Base.connection_pool.with_connection do |conn|
Que::ActiveRecord::Model.connection_pool.with_connection do |conn|
yield conn.raw_connection
end
end
Expand Down

0 comments on commit 8a2b326

Please sign in to comment.