From 0e9a9c7aa7791de708657c269dd7b9bb0f42b01c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 6 Aug 2010 09:14:10 -0700 Subject: removing test code from implementation --- lib/arel/algebra/relations/writes.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/writes.rb b/lib/arel/algebra/relations/writes.rb index 8cf7a7cdad..7df6d861a8 100644 --- a/lib/arel/algebra/relations/writes.rb +++ b/lib/arel/algebra/relations/writes.rb @@ -1,8 +1,5 @@ module Arel class Action < Compound - def == other - super || self.class === other && @relation == other.relation - end end class Deletion < Action @@ -27,10 +24,6 @@ module Arel engine.create(self) end - def == other - super && @record == other.record - end - def eval unoperated_rows + [Row.new(self, record.values.collect(&:value))] end -- cgit v1.2.3