Module: TestProf::ActiveRecordSharedConnection::Ext

Defined in:
lib/test_prof/recipes/active_record_shared_connection.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



59
60
61
62
# File 'lib/test_prof/recipes/active_record_shared_connection.rb', line 59

def connection
  return super if ActiveRecordSharedConnection.ignored?(connection_config)
  ActiveRecordSharedConnection.connection || super
end