method
resolve_string_connection
v3.2.1 -
Show latest stable
- Class:
ActiveRecord::Base::ConnectionSpecification::Resolver
resolve_string_connection(spec)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb, line 32
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