mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
ruby: Add query for hoisting Rails ActiveRecord calls
This does not take assicoations into account. It uses ActiveRecordModelFinderCall to identify relevant calls. This class has therefor been made public.
This commit is contained in:
committed by
yoff
parent
d7117ef3e5
commit
5feb401607
@@ -254,9 +254,8 @@ private Expr getUltimateReceiver(MethodCall call) {
|
||||
)
|
||||
}
|
||||
|
||||
// A call to `find`, `where`, etc. that may return active record model object(s)
|
||||
private class ActiveRecordModelFinderCall extends ActiveRecordModelInstantiation, DataFlow::CallNode
|
||||
{
|
||||
/** A call to `find`, `where`, etc. that may return active record model object(s) */
|
||||
class ActiveRecordModelFinderCall extends ActiveRecordModelInstantiation, DataFlow::CallNode {
|
||||
private ActiveRecordModelClass cls;
|
||||
|
||||
ActiveRecordModelFinderCall() {
|
||||
|
||||
Reference in New Issue
Block a user