method

match_head_routes

match_head_routes(routes, req)
private

No documentation available.

# File actionpack/lib/action_dispatch/journey/router.rb, line 134
        def match_head_routes(routes, req)
          head_routes = routes.select { |r| r.requires_matching_verb? && r.matches?(req) }
          return head_routes unless head_routes.empty?

          begin
            req.request_method = "GET"
            routes.select! { |r| r.matches?(req) }
            routes
          ensure
            req.request_method = "HEAD"
          end
        end