Skip to content

Commit 2a2a6ab

Browse files
authored
Merge pull request rails#46484 from RubyElders/leading-join-node-namespace
Move Arel::Nodes::LeadingJoin into arel.
2 parents bd7b45d + 53ce2bc commit 2a2a6ab

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,9 +1518,6 @@ def select_association_list(associations, stashed_joins = nil)
15181518
result
15191519
end
15201520

1521-
class ::Arel::Nodes::LeadingJoin < Arel::Nodes::InnerJoin # :nodoc:
1522-
end
1523-
15241521
def build_join_buckets
15251522
buckets = Hash.new { |h, k| h[k] = [] }
15261523

activerecord/lib/arel/nodes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
require "arel/nodes/outer_join"
6464
require "arel/nodes/right_outer_join"
6565
require "arel/nodes/string_join"
66+
require "arel/nodes/leading_join"
6667

6768
require "arel/nodes/comment"
6869

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
module Arel # :nodoc: all
4+
module Nodes
5+
class LeadingJoin < Arel::Nodes::InnerJoin
6+
end
7+
end
8+
end

0 commit comments

Comments
 (0)