diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-23 13:38:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-23 13:38:18 -0700 |
commit | 4cc43be38c488e7ec2d83408b8cb2475e2a620e7 (patch) | |
tree | 4eb987c332ba4daf82026da72634667afa419c65 /lib/arel | |
parent | 5a67d47a968e7c9febdba1b8c24d1db84abaac83 (diff) | |
download | rails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.tar.gz rails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.tar.bz2 rails-4cc43be38c488e7ec2d83408b8cb2475e2a620e7.zip |
ignoring alias
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/table.rb | 2 |
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 |