class ActiveRecord::PredicateBuilder

def self.references(attributes)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.references: (Hash attributes) -> untyped

This signature was generated using 21 samples from 1 application.

def self.references(attributes)
  attributes.each_with_object([]) do |(key, value), result|
    if value.is_a?(Hash)
      result << Arel.sql(key)
    elsif key.include?(".")
      result << Arel.sql(key.split(".").first)
    end
  end
end