Module: BabySqueel::JoinDependency::Injector6_1

Defined in:
lib/baby_squeel/join_dependency.rb

Overview

This is a ‘fix’ for the left outer joins rails way would be to call left_outer_joins so the join_type gets set to Arel::Nodes::OuterJoin Maybe this could be fixed in joining but I do not know how.

Instance Method Summary collapse

Instance Method Details

#make_constraints(parent, child, join_type) ⇒ Object

:nodoc:



32
33
34
35
# File 'lib/baby_squeel/join_dependency.rb', line 32

def make_constraints(parent, child, join_type) # :nodoc:
  join_type = child.join_type if child.join_type == Arel::Nodes::OuterJoin
  super(parent, child, join_type)
end