Method: ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver#to_hash
- Defined in:
- activerecord/lib/active_record/database_configurations/connection_url_resolver.rb
#to_hash ⇒ Object
Converts the given URL to a full connection hash.
38 39 40 41 42 |
# File 'activerecord/lib/active_record/database_configurations/connection_url_resolver.rb', line 38 def to_hash config = raw_config.compact_blank config.map { |key, value| config[key] = uri_parser.unescape(value) if value.is_a? String } config end |