mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #42060 from Tonkpils/tonkpils/fix-enlist-fixture-connections
Ensure variables are set in case enlist_fixture_connections is called
This commit is contained in:
commit
ba1ec19013
1 changed files with 2 additions and 3 deletions
|
@ -111,12 +111,11 @@ module ActiveRecord
|
|||
@fixture_connections = []
|
||||
@@already_loaded_fixtures ||= {}
|
||||
@connection_subscriber = nil
|
||||
@legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
|
||||
@saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
|
||||
|
||||
# Load fixtures once and begin transaction.
|
||||
if run_in_transaction?
|
||||
@legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
|
||||
@saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
|
||||
|
||||
if @@already_loaded_fixtures[self.class]
|
||||
@loaded_fixtures = @@already_loaded_fixtures[self.class]
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue