lib/enjoy/goto/middleware.rb in enjoy_cms_goto-0.3.5 vs lib/enjoy/goto/middleware.rb in enjoy_cms_goto-0.3.6
- old
+ new
@@ -19,11 +19,9 @@
doc.css("a[href]").each do |a|
_href = a['href']
if _href =~ /^(https?:)?\/\//i
begin
_host = Addressable::URI.parse(_href).host
- puts _href
- puts _host
unless @excluded_hosts.include?(_host)
a['href'] = Rails.application.routes.url_helpers.enjoy_goto_path(url: _href)
end
rescue
end