method
connection_active?
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool
connection_active?()private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 218
def connection_active?
@connection.status == PGconn::CONNECTION_OK
rescue PGError
false
end