lib/ensembl/variation/activerecord.rb in ensembl-0.0.11 vs lib/ensembl/variation/activerecord.rb in ensembl-0.0.12

- old
+ new

@@ -1,28 +1,28 @@ require 'active_record' module Ensembl module Variation - # ConnectionPool implemented from: - # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html class Connection < ActiveRecord::Base self.extend Ensembl::TableNameOverrides self.abstract_class = true self.establish_connection :variation - # ConnectionPool implemented from: - # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html - singleton_class.send(:alias_method, :original_connection, :connection) - - def self.connection - ActiveRecord::Base.connection_pool.with_connection do |conn| - conn - end - end + # # ConnectionPool implemented from: + # # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html + # singleton_class.send(:alias_method, :original_connection, :connection) + # + # def self.connection + # ActiveRecord::Base.connection_pool.with_connection do |conn| + # conn + # end + # end + # 0x007ff553364930 + # 0x007ff553364930 end class ModelBase < Connection self.extend PrimaryKeyOverrides \ No newline at end of file