From bef0d30e30b99c8e56325645a9f643b60ce3dff9 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 30 Jul 2010 14:47:37 -0700 Subject: removing Table#== as it is not actually used --- lib/arel/algebra/relations/relation.rb | 2 +- lib/arel/engines/sql/relations/table.rb | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/relation.rb b/lib/arel/algebra/relations/relation.rb index c6e2727c8f..9b90142de9 100644 --- a/lib/arel/algebra/relations/relation.rb +++ b/lib/arel/algebra/relations/relation.rb @@ -129,7 +129,7 @@ module Arel end def where clause = nil - clause ? Where.new(self, [clause]) : self + clause ? Where.new(self, Array(clause)) : self end def skip thing = nil diff --git a/lib/arel/engines/sql/relations/table.rb b/lib/arel/engines/sql/relations/table.rb index 8266897098..35b6b5ce5c 100644 --- a/lib/arel/engines/sql/relations/table.rb +++ b/lib/arel/engines/sql/relations/table.rb @@ -82,13 +82,6 @@ module Arel @columns = nil @attributes = Header.new([]) end - - def ==(other) - super || - Table === other && - name == other.name && - table_alias == other.table_alias - end end end -- cgit v1.2.3