instance method resolve_symbol_connection

Ruby on Rails 8.0.4

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

resolve_symbol_connection(name)

No documentation comment.

Parameters

name req
Source
# File activerecord/lib/active_record/database_configurations.rb, line 225
      def resolve_symbol_connection(name)
        if db_config = find_db_config(name)
          db_config
        else
          raise AdapterNotSpecified, <<~MSG
            The `#{name}` database is not configured for the `#{default_env}` environment.

              Available database configurations are:

              #{build_configuration_sentence}
          MSG
        end
      end

Defined in activerecord/lib/active_record/database_configurations.rb line 225 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::DatabaseConfigurations

Type at least 2 characters to search.

↑↓ navigate · open · esc close