Sha256: 7818a96736c004460724b161c576f4369a618ade4a559e566c2f1c34c1aecef5
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
class Hash # Allows for taking a hash and turning it into CGI params # Since 1.8.x does not have ordered hashes the params might not # be ordered. # # @todo Hash#url_params may require some URL escaping. # # @author Matt Kirk def url_params map do |k,v| if v.respond_to?(:join) "#{k}=#{v.join(",")}" else "#{k}=#{v}" end end.join("&") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.3 | lib/core/facets/hash/url_params.rb |