instance method skip_verification?

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

skip_verification?(allow_retry:, reconnectable:)

Decide whether the connection can be used without verification.

Parameters

allow_retry keyreq
reconnectable keyreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 1205
        def skip_verification?(allow_retry:, reconnectable:)
          if @verified && connected? && !@needs_reconnect
            true
          elsif !@needs_reconnect && (last_activity = seconds_since_last_activity) && last_activity < verify_timeout
            true
          elsif reconnectable
            if @needs_reconnect
              false
            elsif allow_retry
              true
            else
              false
            end
          else
            true
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 1205 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close