instance method
reconnect!
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v7.0.10Signature
reconnect!()
Close then reopen the connection.
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 228
def reconnect!
if @connection.respond_to?(:reset)
@connection.reset
configure_connection
else
disconnect!
connect
end
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 228
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter