aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/table.rb')
-rw-r--r--lib/arel/relations/table.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/table.rb b/lib/arel/relations/table.rb
index 06625dd52a..087028fb55 100644
--- a/lib/arel/relations/table.rb
+++ b/lib/arel/relations/table.rb
@@ -29,8 +29,8 @@ module Arel
end
def ==(other)
- Table == other.class and
- name == other.name
+ Table === other and
+ name == other.name
end
end
end \ No newline at end of file