# File lib/routing_filter/adapters/rails_3.rb, line 64 def recognize_with_filtering(request, &block) path, route, matches, params = request.env['PATH_INFO'], nil, nil, nil original_path = path.dup filters.run(:around_recognize, path, request.env) do route, matches, params = recognize_without_filtering(request) params || {} end request.env['PATH_INFO'] = original_path # hmm ... block.call(route, matches, params) if route end