diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:22:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:22:40 -0700 |
commit | 3aaac5b646ecd73a2fc684896402b1456e5238d8 (patch) | |
tree | edfc10f176f9127443489e42d18e7cfebb1d9324 /lib/arel/engines/sql/relations/table.rb | |
parent | 1a1e5c144b3192c552b6398607622c3d10e417ca (diff) | |
download | rails-3aaac5b646ecd73a2fc684896402b1456e5238d8.tar.gz rails-3aaac5b646ecd73a2fc684896402b1456e5238d8.tar.bz2 rails-3aaac5b646ecd73a2fc684896402b1456e5238d8.zip |
PERF: fewer objects
Diffstat (limited to 'lib/arel/engines/sql/relations/table.rb')
-rw-r--r-- | lib/arel/engines/sql/relations/table.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/arel/engines/sql/relations/table.rb b/lib/arel/engines/sql/relations/table.rb index 236a36c7a7..9e64e8e590 100644 --- a/lib/arel/engines/sql/relations/table.rb +++ b/lib/arel/engines/sql/relations/table.rb @@ -94,8 +94,9 @@ module Arel end def ==(other) - Table === other and - name == other.name and + super || + Table === other && + name == other.name && table_alias == other.table_alias end end |