diff options
Diffstat (limited to 'lib')
-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 |