instance method
active?
Ruby on Rails 8.1.2
Since v7.1.6Signature
active?()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 123
def active?
connected? && @lock.synchronize { @raw_connection&.ping; verified! } || false
rescue ::Trilogy::Error
false
end
Defined in activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub