diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-28 17:47:46 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-28 17:47:46 -0700 |
commit | aea1477362b640ebe52cf991b915ad32e7bf2571 (patch) | |
tree | ae4005c56fba372099f51b2e1e7bd55bf541c44a /activerecord/lib/active_record | |
parent | 25f94971abf71fe51089f53b72cc08b636c230b3 (diff) | |
download | rails-aea1477362b640ebe52cf991b915ad32e7bf2571.tar.gz rails-aea1477362b640ebe52cf991b915ad32e7bf2571.tar.bz2 rails-aea1477362b640ebe52cf991b915ad32e7bf2571.zip |
make sure we have an active database connection before running each connection management test
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index d88720c8bf..bcd3abc08d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -116,7 +116,11 @@ module ActiveRecord connection_handler.remove_connection(klass) end - delegate :clear_active_connections!, :clear_reloadable_connections!, + def clear_active_connections! + connection_handler.clear_active_connections! + end + + delegate :clear_reloadable_connections!, :clear_all_connections!,:verify_active_connections!, :to => :connection_handler end end |