Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3221

Show
Ignore:
Timestamp:
12/05/05 19:58:11 (3 years ago)
Author:
bitsweat
Message:

Clear connection cache after rolling back transaction.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/fixtures.rb

    r3218 r3221  
    504504 
    505505      def teardown_with_fixtures 
    506         ActiveRecord::Base.clear_connection_cache! 
    507       ensure 
    508506        # Rollback changes. 
    509507        if use_transactional_fixtures? 
     
    511509          ActiveRecord::Base.unlock_mutex 
    512510        end 
     511        ActiveRecord::Base.clear_connection_cache! 
    513512      end 
    514513