aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-10 14:53:50 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-10 14:53:50 -0700
commit0c6c026dec83f7ba1a357abd4427c999523178f6 (patch)
tree20cab585c08e5e7331f17339f675caec68afe804 /activerecord/lib
parentff5f328bdfdd3dffd31bd74adac9d1e6e7f241fd (diff)
downloadrails-0c6c026dec83f7ba1a357abd4427c999523178f6.tar.gz
rails-0c6c026dec83f7ba1a357abd4427c999523178f6.tar.bz2
rails-0c6c026dec83f7ba1a357abd4427c999523178f6.zip
nodes do not need to be sorted
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