Permalink
Browse files

Fix a bit the initialization of Table

  • Loading branch information...
1 parent f127338 commit 9ef7afda3beaab7979490665fe2648639ab91e1c Ivan Ukhov committed with tenderlove Nov 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/arel/table.rb
View
@@ -22,7 +22,7 @@ def initialize name, engine = Table.engine
# 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] unless engine[:as].to_s == name
+ @table_alias = engine[:as] unless engine[:as].to_s == @name
end
end

0 comments on commit 9ef7afd

Please sign in to comment.