diff options
Diffstat (limited to 'lib/arel/engines/sql/relations')
-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 |