# File lib/active_record/connection_adapters/oci_adapter.rb, line 217 def active? # Pings the connection to check if it's still good. Note that an # #active? method is also available, but that simply returns the # last known state, which isn't good enough if the connection has # gone stale since the last use. @connection.ping rescue OCIError false end