Sha256: 5cc5b0632fcf84e383e57264012050eb5aef499bc19c88627f1b85d61592a9dd
Contents?: true
Size: 246 Bytes
Versions: 5
Compression:
Stored size: 246 Bytes
Contents
require 'rack/utils' module MobilePagination module Utils def query_to_hash(qs) Rack::Utils.parse_nested_query(qs) || {} end def hash_to_query(hash) URI.encode(hash.map{|k,v| "#{k}=#{v}"}.join("&")) end end end
Version data entries
5 entries across 5 versions & 1 rubygems