instance method
resolve_symbol_connection
Ruby on Rails 7.1.6
Since v6.1.7.10 PrivateSignature
resolve_symbol_connection(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/database_configurations.rb, line 225
def resolve_symbol_connection(name)
if db_config = find_db_config(name)
db_config
else
raise AdapterNotSpecified, <<~MSG
The `#{name}` database is not configured for the `#{default_env}` environment.
Available database configurations are:
#{build_configuration_sentence}
MSG
end
end
Defined in activerecord/lib/active_record/database_configurations.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConfigurations