method
build_db_config_from_raw_config
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations
build_db_config_from_raw_config(env_name, spec_name, config)private
No documentation available.
# File activerecord/lib/active_record/database_configurations.rb, line 145
def build_db_config_from_raw_config(env_name, spec_name, config)
case config
when String
build_db_config_from_string(env_name, spec_name, config)
when Hash
build_db_config_from_hash(env_name, spec_name, config.stringify_keys)
else
raise InvalidConfigurationError, "'{ #{env_name} => #{config} }' is not a valid configuration. Expected '#{config}' to be a URL string or a Hash."
end
end