Method: ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver#to_hash

Defined in:
lib/active_record/connection_adapters/connection_specification.rb

#to_hashObject

Converts the given URL to a full connection hash.



52
53
54
55
56
# File 'lib/active_record/connection_adapters/connection_specification.rb', line 52

def to_hash
  config = raw_config.reject { |_, value| value.blank? }
  config.map { |key, value| config[key] = uri_parser.unescape(value) if value.is_a? String }
  config
end