An additional call step for calls to ActiveRecord scopes. For example, in the following code:
class User < ActiveRecord::Base
scope :with_role, ->(role) { where(role: role) }
end
User.with_role(r)
the call to with_role
targets the lambda, and argument r
flows to the parameter role
.
Import path
import codeql.ruby.frameworks.ActiveRecord
Direct supertypes
Predicates
viableTarget | Gets a viable target for |