aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-23 13:38:18 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-23 13:38:18 -0700
commit4cc43be38c488e7ec2d83408b8cb2475e2a620e7 (patch)
tree4eb987c332ba4daf82026da72634667afa419c65 /lib/arel
parent5a67d47a968e7c9febdba1b8c24d1db84abaac83 (diff)
downloadrails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.tar.gz
rails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.tar.bz2
rails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.zip
ignoring alias
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index a1243f582b..a709a3d717 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -22,7 +22,7 @@ module Arel
# Sometime AR sends an :as parameter to table, to let the table know
# that it is an Alias. We may want to override new, and return a
# TableAlias node?
- @table_alias = engine[:as]
+ @table_alias = engine[:as] unless engine[:as].to_s == name.to_s
end
end