APIdock / Ruby on Rails
/
Browse About
method

connected?

rails latest stable - Class: ActiveRecord::ConnectionHandling
connected?()
public

Returns true if Active Record is connected.

# File activerecord/lib/active_record/connection_handling.rb, line 291
    def connected?
      connection_handler.connected?(connection_specification_name, role: current_role, shard: current_shard)
    end

Related methods

  • Instance methods
  • clear_active_connections!
  • clear_all_connections!
  • clear_cache!
  • clear_query_caches_for_current_thread
  • clear_reloadable_connections!
  • connected?
  • connected_to
  • connected_to?
  • connected_to_many
  • connecting_to
  • connection
  • connection_db_config
  • connection_pool
  • connection_specification_name
  • connects_to
  • establish_connection
  • flush_idle_connections!
  • mysql2_adapter_class
  • mysql2_connection
  • postgresql_adapter_class
  • postgresql_connection
  • primary_class?
  • prohibit_shard_swapping
  • remove_connection
  • retrieve_connection
  • shard_swapping_prohibited?
  • sqlite3_adapter_class
  • sqlite3_connection
  • trilogy_adapter_class
  • trilogy_connection
  • while_preventing_writes
  • Private methods
  • privateappend_to_connected_to_stack
  • privatedeprecation_for_delegation
  • privateresolve_config_for_connection
  • privatewith_role_and_shard
APIdock API Documentation Browser

Swarmia: the developer productivity platform for modern engineering teams.

© 2026 APIdock