method
query_hash
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionSpecification::ConnectionUrlResolver
query_hash()private
Converts the query parameters of the URI into a hash.
"localhost?pool=5&reaping_frequency=2" # => { "pool" => "5", "reaping_frequency" => "2" }
returns empty hash if no query present.
"localhost" # => {}