Sha256: ac596a357069a7bc0b6ee2d3c731e5e150ca5189261e2051307d0992e8b646cc
Contents?: true
Size: 279 Bytes
Versions: 19
Compression:
Stored size: 279 Bytes
Contents
class ActiveRecord::Base mattr_accessor :shared_connection @@shared_connection = nil def self.connection @@shared_connection || ConnectionPool::Wrapper.new(size: 1) { retrieve_connection } end end ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
Version data entries
19 entries across 19 versions & 1 rubygems