active_house 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_house/modeling/connection.rb +8 -1
- data/lib/active_house/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ce9f4613cd0dcd9620da942c301d828f2c29fe
|
4
|
+
data.tar.gz: 813e819830b425a3483d6d859c96d35293576f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0ed42cf6fbb9f1f002fe0f7187e224bc20ad595dede752be19b563566e2afe259e3a4424fc9c8b5421e0af87b0bd1a1478987e3b98fd56ea580c67acfd74520
|
7
|
+
data.tar.gz: 8947212b75c06e47f4e3e0cdf6d602dff157b6885bc4ead3f8e7e4fc7a74e84e2c77e4608ad544d2467fe8f57473924201411f444cc132944439de1b928deaab
|
@@ -10,11 +10,18 @@ module ActiveHouse
|
|
10
10
|
|
11
11
|
included do
|
12
12
|
class_attribute :_connection_class, instance_accessor: false
|
13
|
-
class_attribute :_connection, instance_accessor: false
|
14
13
|
self._connection_class = ActiveHouse::Connection
|
15
14
|
end
|
16
15
|
|
17
16
|
class_methods do
|
17
|
+
def _connection
|
18
|
+
Thread[name]
|
19
|
+
end
|
20
|
+
|
21
|
+
def _connection=(value)
|
22
|
+
Thread[name] = value
|
23
|
+
end
|
24
|
+
|
18
25
|
def ensure_connection
|
19
26
|
establish_connection if _connection.nil?
|
20
27
|
end
|
data/lib/active_house/version.rb
CHANGED