Module: FreshConnection::ConnectionSpecification::Rails61

Defined in:
lib/fresh_connection/connection_specification/rails_61.rb

Instance Method Summary collapse

Instance Method Details

#specObject



6
7
8
9
# File 'lib/fresh_connection/connection_specification/rails_61.rb', line 6

def spec
  db_config = ActiveRecord::DatabaseConfigurations::HashConfig.new(@spec_name.to_sym, ActiveRecord::Base.connection_pool.db_config.name, build_config)
  ActiveRecord::ConnectionAdapters::PoolConfig.new(ActiveRecord::Base, db_config)
end