instance method
build_url_hash
Ruby on Rails 6.0.6
Since v6.0.6 PrivateSignature
build_url_hash(url)
No documentation comment.
Parameters
-
urlreq
Source
# File activerecord/lib/active_record/database_configurations/url_config.rb, line 59
def build_url_hash(url)
if url.nil? || /^jdbc:/.match?(url)
{ "url" => url }
else
ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver.new(url).to_hash
end
end
Defined in activerecord/lib/active_record/database_configurations/url_config.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub