CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Predicate controllerTemplateFile

Holds if templateFile is a viable file “belonging” to the given ActionControllerControllerClass, according to Rails conventions.

This handles mappings between controllers in app/controllers/, and templates in app/views/ and app/views/layouts/.

Import path

import codeql.ruby.frameworks.ActionController
predicate controllerTemplateFile(ActionControllerClass cls, ErbFile templateFile)