Flowdock
method

merge_outer_joins

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Merger
merge_outer_joins() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/merger.rb, line 135
        def merge_outer_joins
          return if other.left_outer_joins_values.blank?

          if other.klass == relation.klass
            relation.left_outer_joins!(*other.left_outer_joins_values)
          else
            joins_dependency = other.left_outer_joins_values.map do |join|
              case join
              when Hash, Symbol, Array
                ActiveRecord::Associations::JoinDependency.new(
                  other.klass, other.table, join
                )
              else
                join
              end
            end

            relation.left_outer_joins!(*joins_dependency)
          end
        end
Register or log in to add new notes.