Sha256: 6579dcc16d470c2ffe54cc5d01e283b9797834caa945d576c2f7013c249f82d5
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
module Doorkeeper module OAuth module Authorization module URIBuilder include Rack::Utils extend self def uri_with_query(url, parameters = {}) uri = URI.parse(url) original_query = parse_query(uri.query) uri.query = build_query(original_query.merge(parameters)) uri.to_s end def uri_with_fragment(url, parameters = {}) uri = URI.parse(url) uri.fragment = build_query(parameters) uri.to_s end def build_query(parameters = {}) parameters = parameters.reject { |k, v| v.blank? } super parameters end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | lib/doorkeeper/oauth/authorization/uri_builder.rb |