diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-16 22:21:05 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-16 22:21:05 +0530 |
commit | d9f460a39b73fd2cf0f17f523cc4810d0bf44cac (patch) | |
tree | 34ca8c3020bcb01f568674ba358b9652830007e0 /activerecord | |
parent | ca23287b448c2e007a5c93e43e762a10e0007b7a (diff) | |
download | rails-d9f460a39b73fd2cf0f17f523cc4810d0bf44cac.tar.gz rails-d9f460a39b73fd2cf0f17f523cc4810d0bf44cac.tar.bz2 rails-d9f460a39b73fd2cf0f17f523cc4810d0bf44cac.zip |
Ensure @@already_loaded_fixtures is initialized before use
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index a09f58fc23..9a82ff2ed4 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -925,6 +925,7 @@ module ActiveRecord end @fixture_cache = {} + @@already_loaded_fixtures ||= {} # Load fixtures once and begin transaction. if use_transactional_fixtures? @@ -939,7 +940,6 @@ module ActiveRecord # Load fixtures for every test. else Fixtures.reset_cache - @@already_loaded_fixtures ||= {} @@already_loaded_fixtures[self.class] = nil load_fixtures end |