Sha256: 83922f15103698ad093da9ca89e60992a17d5803c39ae2d5717db9324d0c5935
Contents?: true
Size: 473 Bytes
Versions: 19
Compression:
Stored size: 473 Bytes
Contents
module ActiveRecord module Associations class Preloader class BelongsTo def query_scope(ids) # CPK # scope.where(association_key.in(ids)) if association_key_name.is_a?(Array) predicate = cpk_in_predicate(table, association_key_name, ids) scope.where(predicate) else scope.where(association_key.in(ids)) end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems