method

build_db_config_from_hash

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: DatabaseConfigurations
build_db_config_from_hash(env_name, name, config) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/database_configurations.rb, line 221
      def build_db_config_from_hash(env_name, name, config)
        if config.has_key?(:url)
          url = config[:url]
          config_without_url = config.dup
          config_without_url.delete :url

          UrlConfig.new(env_name, name, url, config_without_url)
        else
          HashConfig.new(env_name, name, config)
        end
      end
Register or log in to add new notes.