Sha256: fa27176ec1d3c9e7a2f77102fdae9fafcb8527c92de18fd4195bb88dbc80262d
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module ActiveRecord module Reflection class AbstractReflection def build_join_constraint(table, foreign_table) key = join_keys.key foreign_key = join_keys.foreign_key # CPK #constraint = table[key].eq(foreign_table[foreign_key]) constraint = cpk_join_predicate(table, key, foreign_table, foreign_key) if klass.finder_needs_type_condition? table.create_and([constraint, klass.send(:type_condition, table)]) else constraint end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-11.0.0.rc2 | lib/composite_primary_keys/reflection.rb |