mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Clean up how we map between Rails actions and default associated template files
This commit is contained in:
@@ -55,3 +55,5 @@ actionControllerHelperMethods
|
||||
getAssociatedControllerClasses
|
||||
| app/controllers/foo/bars_controller.rb:1:1:20:3 | BarsController | app/views/foo/bars/_widget.html.erb:0:0:0:0 | app/views/foo/bars/_widget.html.erb |
|
||||
| app/controllers/foo/bars_controller.rb:1:1:20:3 | BarsController | app/views/foo/bars/show.html.erb:0:0:0:0 | app/views/foo/bars/show.html.erb |
|
||||
controllerTemplatesFolders
|
||||
| app/controllers/foo/bars_controller.rb:1:1:20:3 | BarsController | folder://app/views/foo/bars | app/views/foo/bars |
|
||||
|
||||
@@ -18,3 +18,7 @@ query predicate actionControllerHelperMethods(ActionControllerHelperMethod m) {
|
||||
query predicate getAssociatedControllerClasses(ActionControllerControllerClass cls, File f) {
|
||||
cls = getAssociatedControllerClass(f)
|
||||
}
|
||||
|
||||
query predicate controllerTemplatesFolders(ActionControllerControllerClass cls, Folder f) {
|
||||
controllerTemplatesFolder(cls, f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user