instance method
build_db_config_from_hash
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
build_db_config_from_hash(env_name, name, config)
No documentation comment.
Parameters
-
env_namereq -
namereq -
configreq
Source
# File activerecord/lib/active_record/database_configurations.rb, line 275
def build_db_config_from_hash(env_name, name, config)
url = config[:url]
config_without_url = config.dup
config_without_url.delete :url
DatabaseConfigurations.db_config_handlers.reverse_each do |handler|
config = handler.call(env_name, name, url, config_without_url)
return config if config
end
nil
end
Defined in activerecord/lib/active_record/database_configurations.rb line 275
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConfigurations