diff options
author | Ivan Ukhov <uvsoft@gmail.com> | 2010-11-17 08:47:34 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-17 12:48:35 +0800 |
commit | 9ef7afda3beaab7979490665fe2648639ab91e1c (patch) | |
tree | f8c477f0c2ea309ae6a7f04bf0a3118a8c568b08 /lib/arel | |
parent | f127338049f7317c238da71fc21b4f318c115a6c (diff) | |
download | rails-9ef7afda3beaab7979490665fe2648639ab91e1c.tar.gz rails-9ef7afda3beaab7979490665fe2648639ab91e1c.tar.bz2 rails-9ef7afda3beaab7979490665fe2648639ab91e1c.zip |
Fix a bit the initialization of Table
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 83d0951453..fe12427d1b 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] unless engine[:as].to_s == name + @table_alias = engine[:as] unless engine[:as].to_s == @name end end |