diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-15 19:00:46 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-26 13:44:10 -0700 |
commit | 03e4ea5290ea4237474d9fd0c59e6bbb7e494fcb (patch) | |
tree | 6ba4cb7375c86f271d438cab7adc3c1bfaabde7a /activerecord | |
parent | 1b4e0b654210d024989dd4b46311807e2c823bdb (diff) | |
download | rails-03e4ea5290ea4237474d9fd0c59e6bbb7e494fcb.tar.gz rails-03e4ea5290ea4237474d9fd0c59e6bbb7e494fcb.tar.bz2 rails-03e4ea5290ea4237474d9fd0c59e6bbb7e494fcb.zip |
clear cache before resetting the connection
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 3bd5acb23d..4fd24ff857 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -250,8 +250,8 @@ module ActiveRecord # Close then reopen the connection. def reconnect! if @connection.respond_to?(:reset) - @connection.reset clear_cache! + @connection.reset configure_connection else disconnect! |