Ruby: Attempt to mitigate potential bad join

By joining simultaneously on controller class and name.
This commit is contained in:
Harry Maclean
2022-02-02 17:03:46 +13:00
parent a38bc9fe89
commit 749dc092ae

View File

@@ -94,7 +94,7 @@ class ActionControllerActionMethod extends Method, HTTP::Server::RequestHandler:
ActionDispatch::Route getARoute() {
result.getController() + "_controller" =
ActionDispatch::underscore(namespaceDeclaration(controllerClass)) and
this.getName() = result.getAction()
isActionControllerMethod(this, result.getAction(), controllerClass)
}
}