mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Ruby: revert making inActionViewContext private
This commit is contained in:
@@ -14,7 +14,7 @@ private import codeql.ruby.frameworks.Rails
|
|||||||
/**
|
/**
|
||||||
* Holds if this AST node is in a context where `ActionView` methods are available.
|
* Holds if this AST node is in a context where `ActionView` methods are available.
|
||||||
*/
|
*/
|
||||||
private predicate inActionViewContext(AstNode n) {
|
predicate inActionViewContext(AstNode n) {
|
||||||
// Within a template
|
// Within a template
|
||||||
n.getLocation().getFile() instanceof ErbFile
|
n.getLocation().getFile() instanceof ErbFile
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user