instance method
skip_verification?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
skip_verification?(allow_retry:, reconnectable:)
Decide whether the connection can be used without verification.
Parameters
-
allow_retrykeyreq -
reconnectablekeyreq
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