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

Class ActiveRecordScopeCallTarget

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

Indirect supertypes

Predicates

viableTarget

Gets a viable target for call.

Inherited predicates

toString

Gets a textual representation of this element.

from Unit