Sha256: cd247d9bd0021d3d4ca9018874904bd0345f588ebe1716e362bfdb04d6e6c555
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
require 'polyamorous/activerecord_4.1/join_dependency' module Polyamorous module JoinDependencyExtensions def make_joins(parent, child) tables = child.tables info = make_constraints parent, child, tables, child.join_type || Arel::Nodes::InnerJoin [info] + child.children.flat_map { |c| make_joins(child, c) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyamorous-1.1.0 | lib/polyamorous/activerecord_4.2/join_dependency.rb |