Class ActionDispatch::Routing::RouteBlock
A block that defines some routes. Route blocks can contribute to the path or controller namespace of their child routes. For example, in the block below
scope path: "/admin" do
get "/dashboard", to: "admin_dashboard#show"
end
the route defined by the call to get has the full path /admin/dashboard.
We track these contributions via getPathComponent and getControllerComponent.
Import path
import codeql.ruby.frameworks.ActionDispatchDirect supertypes
Known direct subtypes
Predicates
| getAPrimaryQlClass | Gets the name of a primary CodeQL class to which this route block belongs. |
| getAStmt | Gets a |
| getControllerComponent | Gets the component of the controller namespace defined by this block, if it exists. |
| getLocation | Gets the location of this route block. |
| getParent | Gets the parent of this route block, if one exists. |
| getParent | Gets the |
| getPathComponent | Gets the component of the path defined by this block, if it exists. |
| toString | Gets a string representation of this route block. |