instance method
build_db_config_from_raw_config
Ruby on Rails 7.1.6
Since v6.0.6 PrivateSignature
build_db_config_from_raw_config(env_name, name, config)
No documentation comment.
Parameters
-
env_namereq -
namereq -
configreq
Source
# File activerecord/lib/active_record/database_configurations.rb, line 252
def build_db_config_from_raw_config(env_name, name, config)
case config
when String
build_db_config_from_string(env_name, name, config)
when Hash
build_db_config_from_hash(env_name, name, config.symbolize_keys)
else
raise InvalidConfigurationError, "'{ #{env_name} => #{config} }' is not a valid configuration. Expected '#{config}' to be a URL string or a Hash."
end
end
Defined in activerecord/lib/active_record/database_configurations.rb line 252
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConfigurations