method

join_constraints

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: JoinDependency
join_constraints(joins_to_add, join_type, alias_tracker) public

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/associations/join_dependency.rb, line 79
      def join_constraints(joins_to_add, join_type, alias_tracker)
        @alias_tracker = alias_tracker

        construct_tables!(join_root)
        joins = make_join_constraints(join_root, join_type)

        joins.concat joins_to_add.flat_map { |oj|
          construct_tables!(oj.join_root)
          if join_root.match? oj.join_root
            walk join_root, oj.join_root
          else
            make_join_constraints(oj.join_root, join_type)
          end
        }
      end
Register or log in to add new notes.