diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 16:33:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 16:33:08 -0800 |
commit | d102791df7c38e7726eb32e70e2f25af97a3ca2a (patch) | |
tree | 4c42e40a5408952d355cbd23519c9d1bcd4fadfc | |
parent | d09b67cfc0df87e39b257409fad72f7bb6d72a41 (diff) | |
download | rails-d102791df7c38e7726eb32e70e2f25af97a3ca2a.tar.gz rails-d102791df7c38e7726eb32e70e2f25af97a3ca2a.tar.bz2 rails-d102791df7c38e7726eb32e70e2f25af97a3ca2a.zip |
ensure @fixture_connections is initialized in case an exception happens during setup
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index c33b37b0ab..d8340bf1c9 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -822,6 +822,7 @@ module ActiveRecord end @fixture_cache = {} + @fixture_connections = [] @@already_loaded_fixtures ||= {} # Load fixtures once and begin transaction. |