instance method
build_db_config_from_raw_config
Ruby on Rails 6.0.6
Since v6.0.6 PrivateSignature
build_db_config_from_raw_config(env_name, spec_name, config)
No documentation comment.
Parameters
-
env_namereq -
spec_namereq -
configreq
Source
# 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
Defined in activerecord/lib/active_record/database_configurations.rb line 145
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConfigurations