Sha256: d57daa176146e3cc9255f0279d17e970c3a3ed5d2feb2fffb3e4e1cf6f57b540
Contents?: true
Size: 542 Bytes
Versions: 16
Compression:
Stored size: 542 Bytes
Contents
module ActiveRecord class PredicateBuilder class AssociationQueryValue def queries # CPK if associated_table.association_join_foreign_key.is_a?(Array) if ids.is_a?(ActiveRecord::Relation) ids.map do |id| id.ids_hash end else [associated_table.association_join_foreign_key.zip(ids).to_h] end else [associated_table.association_join_foreign_key.to_s => ids] end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems