Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a bit the initialization of Table

  • Loading branch information...
commit 9ef7afda3beaab7979490665fe2648639ab91e1c 1 parent f127338
Ivan Ukhov authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/arel/table.rb
View
2  lib/arel/table.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.