ensembl 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ensembl/core/activerecord.rb +1 -4
- data/lib/ensembl/variation/activerecord.rb +1 -2
- data/lib/ensembl/version.rb +1 -1
- data/lib/ensembl.rb +3 -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: 9f42c94ee8d83d257d7a8a14bc93e7575378960c
|
|
4
|
+
data.tar.gz: bb7fba0cfe944082d157fffb5f572da729593bde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e445f42acc1f4f1f7cc6e228c98b8854feaf9fb051e40c120f1d15cdf2ad9725b95119af95252f5d83e192e96048951d27d4cfce9a6a393d022b26ef3cad3316
|
|
7
|
+
data.tar.gz: ad76ac1961ce9a49b224eda9db098b47cbc4ce8c1369f78545358e36d2c9d8447a3679cc165508c84e1438beec2eb6d147bbe96e1002473294a975432411ac74
|
|
@@ -7,11 +7,8 @@ module Ensembl
|
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
|
12
|
-
class Connection < ActiveRecord::Base
|
|
10
|
+
class Connection < ConnectionPooledBase
|
|
13
11
|
self.extend Ensembl::TableNameOverrides
|
|
14
|
-
self.extend Ensembl::ConnectionPool
|
|
15
12
|
|
|
16
13
|
self.abstract_class = true
|
|
17
14
|
|
|
@@ -5,10 +5,9 @@ module Ensembl
|
|
|
5
5
|
|
|
6
6
|
# ConnectionPool implemented from:
|
|
7
7
|
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
|
8
|
-
class Connection <
|
|
8
|
+
class Connection < ConnectionPooledBase
|
|
9
9
|
|
|
10
10
|
self.extend Ensembl::TableNameOverrides
|
|
11
|
-
self.extend Ensembl::ConnectionPool
|
|
12
11
|
|
|
13
12
|
self.abstract_class = true
|
|
14
13
|
|
data/lib/ensembl/version.rb
CHANGED
data/lib/ensembl.rb
CHANGED
|
@@ -21,7 +21,9 @@ module Ensembl
|
|
|
21
21
|
|
|
22
22
|
# ConnectionPool implemented from:
|
|
23
23
|
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
|
24
|
-
|
|
24
|
+
class ConnectionPooledBase < ActiveRecord::Base
|
|
25
|
+
self.abstract_class = true
|
|
26
|
+
|
|
25
27
|
singleton_class.send(:alias_method, :original_connection, :connection)
|
|
26
28
|
|
|
27
29
|
def self.connection
|