We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0beae87 + e088454 commit ba1ec19Copy full SHA for ba1ec19
activerecord/lib/active_record/test_fixtures.rb
@@ -111,12 +111,11 @@ def setup_fixtures(config = ActiveRecord::Base)
111
@fixture_connections = []
112
@@already_loaded_fixtures ||= {}
113
@connection_subscriber = nil
114
+ @legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
115
+ @saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
116
117
# Load fixtures once and begin transaction.
118
if run_in_transaction?
- @legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
- @saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }
119
-
120
if @@already_loaded_fixtures[self.class]
121
@loaded_fixtures = @@already_loaded_fixtures[self.class]
122
else
0 commit comments