Class: Ensembl::ConnectionPooledBase
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ensembl::ConnectionPooledBase
- Defined in:
- lib/ensembl.rb
Overview
ConnectionPool implemented from: www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
Class Method Summary collapse
Class Method Details
.connection ⇒ Object
29 30 31 32 33 |
# File 'lib/ensembl.rb', line 29 def self.connection ActiveRecord::Base.connection_pool.with_connection do |conn| conn end end |