method
build_db_config_from_hash
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations
build_db_config_from_hash(env_name, spec_name, config)private
No documentation available.
# File activerecord/lib/active_record/database_configurations.rb, line 166
def build_db_config_from_hash(env_name, spec_name, config)
if config.has_key?("url")
url = config["url"]
config_without_url = config.dup
config_without_url.delete "url"
ActiveRecord::DatabaseConfigurations::UrlConfig.new(env_name, spec_name, url, config_without_url)
else
ActiveRecord::DatabaseConfigurations::HashConfig.new(env_name, spec_name, config)
end
end