class UrlNormalizer::Proxy

Public Instance Methods

normalize() click to toggle source
Calls superclass method UrlNormalizer::normalize
# File lib/url_normalizer/proxy.rb, line 5
def normalize
  return super unless @uri.query
  actual_urls = CGI.parse(@uri.query)['url']
  if actual_urls
    UrlNormalizer.normalize actual_urls[0]
  else
    super
  end
end