mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +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.
|
||||
*/
|
||||
private predicate inActionViewContext(AstNode n) {
|
||||
predicate inActionViewContext(AstNode n) {
|
||||
// Within a template
|
||||
n.getLocation().getFile() instanceof ErbFile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user