Clean up how we map between Rails actions and default associated template files

This commit is contained in:
Alex Ford
2021-08-25 16:47:58 +01:00
parent abc283ee8a
commit 4a4b2445dc
3 changed files with 33 additions and 15 deletions

View File

@@ -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 |

View File

@@ -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)
}