From 1e327a5047f71ea6c93cde208c8b9206627c7302 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 30 Jul 2010 10:41:50 -0700 Subject: PERF: removing another def engine --- lib/arel/algebra/relations/operations/where.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/operations/where.rb b/lib/arel/algebra/relations/operations/where.rb index d851aebc44..98efb72ec1 100644 --- a/lib/arel/algebra/relations/operations/where.rb +++ b/lib/arel/algebra/relations/operations/where.rb @@ -12,17 +12,6 @@ module Arel @wheres ||= relation.wheres + predicates end - def engine - engine = relation.engine - - # Temporary check of whether or not the engine supports where. - if engine.respond_to?(:supports) && !engine.supports(:restricting) - Memory::Engine.new - else - engine - end - end - def eval unoperated_rows.select { |row| predicates.all? { |p| p.eval(row) } } end -- cgit v1.2.3