Skip to content

Commit

Permalink
Rails 7.1 needs this the explicit require
Browse files Browse the repository at this point in the history
  • Loading branch information
dalibor committed Oct 27, 2023
1 parent dc3787a commit d6109e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/octoshark/connection_pools_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def create_connection_pool(name, config)
def build_connection_pool_spec(name, config)
if active_record_6_1_or_7?
env_name = defined?(Rails) ? Rails.env : nil
require "active_record/database_configurations"
db_config = ActiveRecord::DatabaseConfigurations::HashConfig.new(env_name, name, config)

pool_config_class = ActiveRecord::ConnectionAdapters::PoolConfig
Expand Down

0 comments on commit d6109e9

Please sign in to comment.