method
build_url_hash
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations::UrlConfig
build_url_hash(url)private
No documentation available.
# File activerecord/lib/active_record/database_configurations/url_config.rb, line 60
def build_url_hash(url)
if url.nil? || /^jdbc:/.match?(url)
{ "url" => url }
else
ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver.new(url).to_hash
end
end