aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-30 09:54:46 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-30 09:54:46 -0700
commitcfb6f77ac0574d3cd613c99fcc32135016b4284c (patch)
tree1549aea7ac7531096499ba13c9603ee06845ee9d /activerecord
parent2be383b94619595a2b4886e35f599757eab6c878 (diff)
downloadrails-cfb6f77ac0574d3cd613c99fcc32135016b4284c.tar.gz
rails-cfb6f77ac0574d3cd613c99fcc32135016b4284c.tar.bz2
rails-cfb6f77ac0574d3cd613c99fcc32135016b4284c.zip
TableAlias leg ordering has changed, so change accordingly
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency/join_part.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency/join_part.rb b/activerecord/lib/active_record/associations/join_dependency/join_part.rb
index 3279e56e7d..2b1d888a9a 100644
--- a/activerecord/lib/active_record/associations/join_dependency/join_part.rb
+++ b/activerecord/lib/active_record/associations/join_dependency/join_part.rb
@@ -22,7 +22,7 @@ module ActiveRecord
end
def aliased_table
- Arel::Nodes::TableAlias.new aliased_table_name, table
+ Arel::Nodes::TableAlias.new table, aliased_table_name
end
def ==(other)