aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index 31867b6c88..09039863e5 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -186,7 +186,7 @@ module ActiveRecord
end
def construct(parent, nodes, row, rs)
- nodes.sort_by { |k| k.name }.each do |node|
+ nodes.each do |node|
association = construct_association(parent, node, row, rs)
construct(association, node.children, row, rs) if association
end