class ActionDispatch::Routing::Redirect

def path(params, request)

def path(params, request)
  block.call params, request
end