lib/active_record/connection_adapters/sqlserver_adapter.rb
# === Abstract Adapter (Connection Management) ================== #
Abstract Adapter (Connection Management)
Abstract Adapter ( Connection Management )
def active?
        return false unless @connection
        raw_connection_do 'SELECT 1'
        true
      rescue TinyTds::Error, ODBC::Error
        false
      end
def active? return false unless @connection raw_connection_do 'SELECT 1' true rescue TinyTds :: Error , ODBC :: Error false end
Abstract Adapter (Connection Management)
Abstract Adapter ( Connection Management )