method

spec

rails latest stable - Class: ActiveRecord::Base::ConnectionSpecification::Resolver

Method deprecated or moved

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

spec()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb, line 21
        def spec
          case config
          when nil
            raise AdapterNotSpecified unless defined?(Rails.env)
            resolve_string_connection Rails.env
          when Symbol, String
            resolve_string_connection config.to_s
          when Hash
            resolve_hash_connection config
          end
        end