Skip to content

Commit 53ce2bc

Browse files
committed
Move Arel::Nodes::LeadingJoin into arel.
- this way it is properly hidden from API documentation
1 parent 90cba59 commit 53ce2bc

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
@@ -1517,9 +1517,6 @@ def select_association_list(associations, stashed_joins = nil)
15171517
result
15181518
end
15191519

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

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)