instance method
build_url_hash
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
build_url_hash()
Return a Hash that can be merged into the main config that represents the passed in url
Source
# File activerecord/lib/active_record/database_configurations/url_config.rb, line 79
def build_url_hash
if url.nil? || url.start_with?("jdbc:", "http:", "https:")
{ url: url }
else
ConnectionUrlResolver.new(url).to_hash
end
end
Defined in activerecord/lib/active_record/database_configurations/url_config.rb line 79
· View on GitHub
· Improve this page
· Find usages on GitHub