Class: ActiveRecord::Base

Inherits:
Object show all
Defined in:
lib/generators/ab_admin/install/templates/spec/support/shared_connection.rb

Constant Summary collapse

@@shared_connection =
nil

Class Method Summary collapse

Class Method Details

.connectionObject


5
6
7
# File 'lib/generators/ab_admin/install/templates/spec/support/shared_connection.rb', line 5

def self.connection
  @@shared_connection || ConnectionPool::Wrapper.new(size: 1) { retrieve_connection }
end