method

resolve_string_connection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

resolve_string_connection(spec)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/connection_specification.rb, line 219
        def resolve_string_connection(spec)
          # Rails has historically accepted a string to mean either
          # an environment key or a URL spec, so we have deprecated
          # this ambiguous behaviour and in the future this function
          # can be removed in favor of resolve_url_connection.
          if configurations.key?(spec) || spec !~ /:/
            ActiveSupport::Deprecation.warn(              Passing a string to ActiveRecord::Base.establish_connection for a              configuration lookup is deprecated, please pass a symbol              (#{spec.to_sym.inspect}) instead..squish)

            resolve_symbol_connection(spec)
          else
            resolve_url_connection(spec)
          end
        end