connection_manager 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/connection_manager/using.rb +1 -1
- data/lib/connection_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzU2NjFmOWFjMzZiMmEzOTNmNjJmNjg4ZTQxYjZkYzNlNWJjYWRkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2E5YzYzZTI5Y2NkYTI3ZDRmNDMwODA0N2MwNThmYzg2YmNmOWE0OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGVhNzFmMDRmOWQ3MDM2YmEwOGIwMTQzOTc1MzRlNzIyMmMxOGMwNWE4ZjFi
|
10
|
+
NmUxZGEyZjgwM2NmYThmYjdlN2E3N2IyNGI0OTFmZDljYTAzMDhiM2YyZWMz
|
11
|
+
MDNkODYwMWJlYWQxYzM5OTc1MTc2MzJlMGVkZjU4OWEwZGZlZjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGFhMTMwZDk3NGI3OGNiMGQ5ODhiZGEyNGFhNDk4ZDBmOTMyNTg1YmJhNjRi
|
14
|
+
NjFkZTg3Njk4ZmU5NDczODBmZmUxNDQ0NjI0MTc2ZjNkNGIyZWUxMjFlODlj
|
15
|
+
Mzc5ODc2YWRmNzg1ZmMxNWY1ZmViNTlkYmVhZDU2MmJlYzViNzU=
|
@@ -22,11 +22,11 @@ module ConnectionManager
|
|
22
22
|
def initialize(klass,connection_class)
|
23
23
|
@klass = klass # the @klass from an ActiveRecord::Relation
|
24
24
|
@connection_class = (connection_class.is_a?(String) ? connection_class.constantize : connection_class)
|
25
|
+
ConnectionManager.logger.info "Using proxy connection: #{@connection_class.name} for #{@klass.name}" if ConnectionManager.logger
|
25
26
|
end
|
26
27
|
|
27
28
|
# Use the connection from the connection class
|
28
29
|
def connection
|
29
|
-
ConnectionManager.logger.info "Using proxy connection: #{@connection_class.name} for #{@klass.name}" if ConnectionManager.logger
|
30
30
|
@connection_class.connection
|
31
31
|
end
|
32
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connection_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Mckinney
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|