lib/sitehub/request.rb in sitehub-0.5.0.alpha6 vs lib/sitehub/request.rb in sitehub-0.5.0.alpha7

- old
+ new

@@ -24,10 +24,11 @@ end def map(path, url) @mapped_path = path @mapped_url = url + @mapped = true end def request_method rack_request.request_method.downcase.to_sym end @@ -52,10 +53,10 @@ def mapping RequestMapping.new(source_url: rack_request.url, mapped_url: mapped_url.to_s, mapped_path: mapped_path) end def mapped? - mapped_path.is_a?(String) + @mapped == true end def remote_user rack_request.env[RackHttpHeaderKeys::REMOTE_USER] end