ensembl 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ensembl/core/activerecord.rb +9 -9
- data/lib/ensembl/variation/activerecord.rb +11 -11
- data/lib/ensembl/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: 5a545b053756549b4e9e4487a83f8bc29fac4311
|
4
|
+
data.tar.gz: c0c76df11398a6ad34929b6ff6fcb8fe82bdb2d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc331260832e59e9f8ddfbdb735dc740827d34e75709b265a6f9a6e6736842f73cca1a2357f7c9595ffac2f8b3cf42d73e59f585a4fd6c9a686c57bd7c5b2ec8
|
7
|
+
data.tar.gz: 0d8e59f9b98eab9fc943e381121ae60741d9de19879d25634c8aa7338ed3cdcfa9fb38d5c956cc5392361a3b0f2c59c67e2fafc10eea940f01c9e78b7d7b2459
|
@@ -14,15 +14,15 @@ module Ensembl
|
|
14
14
|
|
15
15
|
self.establish_connection :core
|
16
16
|
|
17
|
-
# ConnectionPool implemented from:
|
18
|
-
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
19
|
-
singleton_class.send(:alias_method, :original_connection, :connection)
|
20
|
-
|
21
|
-
def self.connection
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
17
|
+
# # ConnectionPool implemented from:
|
18
|
+
# # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
19
|
+
# singleton_class.send(:alias_method, :original_connection, :connection)
|
20
|
+
#
|
21
|
+
# def self.connection
|
22
|
+
# connection_pool.with_connection do |conn|
|
23
|
+
# conn
|
24
|
+
# end
|
25
|
+
# end
|
26
26
|
end
|
27
27
|
|
28
28
|
class ModelBase < Connection
|
@@ -3,8 +3,6 @@ require 'active_record'
|
|
3
3
|
module Ensembl
|
4
4
|
module Variation
|
5
5
|
|
6
|
-
# ConnectionPool implemented from:
|
7
|
-
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
8
6
|
class Connection < ActiveRecord::Base
|
9
7
|
|
10
8
|
self.extend Ensembl::TableNameOverrides
|
@@ -13,15 +11,17 @@ module Ensembl
|
|
13
11
|
|
14
12
|
self.establish_connection :variation
|
15
13
|
|
16
|
-
# ConnectionPool implemented from:
|
17
|
-
# http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
18
|
-
singleton_class.send(:alias_method, :original_connection, :connection)
|
19
|
-
|
20
|
-
def self.connection
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
14
|
+
# # ConnectionPool implemented from:
|
15
|
+
# # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
|
16
|
+
# singleton_class.send(:alias_method, :original_connection, :connection)
|
17
|
+
#
|
18
|
+
# def self.connection
|
19
|
+
# ActiveRecord::Base.connection_pool.with_connection do |conn|
|
20
|
+
# conn
|
21
|
+
# end
|
22
|
+
# end
|
23
|
+
# 0x007ff553364930
|
24
|
+
# 0x007ff553364930
|
25
25
|
end
|
26
26
|
|
27
27
|
class ModelBase < Connection
|
data/lib/ensembl/version.rb
CHANGED