replica_pools 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab90e26beb7efb6b13dd59a067a1507207d657659cac075ee91d1364a652e476
4
- data.tar.gz: 166edf9e559cc696d837f32c8558e31fc69e1b24708e4d6a543210317f7af5e2
3
+ metadata.gz: bbd92d614f51ed7b7d9ed39d174fff5b7574b6dfe1f9fc09370e823237b6278b
4
+ data.tar.gz: 03f068ac02942552e6aa847e95012f1e38f4dc56ba63f580459c7446290edf4f
5
5
  SHA512:
6
- metadata.gz: bf7ec04c450f7338bb5aac3bb41784dd88b2d3e069423fc5fdfbe8f9d13657eb3e35180c5a52e18099a608effd6c57073c5b20af2150e2b20a6710a8eac4388b
7
- data.tar.gz: 4dfb218fbf9136d536b218072c2bba6a06ccd2412403461b9bc19184e9ac1767b8d1af64b5c025532f08651dd3b2fb4d04beea3e6202ea0f901a856f2a8396db
6
+ metadata.gz: 5aee205f1a54bfd92eaaa27dd6696f6d3ee337f58a95ee3f273a88167250c8fa9f5e4372ea18e2c261011c01d502f614aa6bc8d6b0225b3b77b58e1d960e5b7a
7
+ data.tar.gz: 81833fdc2aeb92f02ad89e907d8c36498e2816310ab8935590c312e052909cb244df315ad2038eaa809d625e379c9edf6c8e4ed3218f398f5b752f095282f9be
@@ -33,7 +33,11 @@ module ReplicaPools
33
33
  # this ivar is for ConnectionAdapter compatibility
34
34
  # some gems (e.g. newrelic_rpm) will actually use
35
35
  # instance_variable_get(:@config) to find it.
36
- @config = current.connection_db_config
36
+ if ActiveRecord::VERSION::MAJOR >= 7
37
+ @config = current.connection_db_config
38
+ else
39
+ @config = current.connection_config
40
+ end
37
41
  end
38
42
 
39
43
  def with_pool(pool_name = 'default')
@@ -1,3 +1,3 @@
1
1
  module ReplicaPools
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replica_pools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Drabik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-07 00:00:00.000000000 Z
12
+ date: 2023-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord