method
resolve_string_connection
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver
resolve_string_connection(spec)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/connection_specification.rb, line 39
def resolve_string_connection(spec) # :nodoc:
hash = configurations.fetch(spec) do |k|
connection_url_to_hash(k)
end
raise(AdapterNotSpecified, "#{spec} database is not configured") unless hash
resolve_hash_connection hash
end