From c0cadc86e054f2c2eead3482d54cbc57e3828671 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 27 Jul 2010 17:58:28 -0700 Subject: never called with a block, so no reason to test --- lib/arel/algebra/relations/operations/where.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/arel/algebra/relations/operations/where.rb b/lib/arel/algebra/relations/operations/where.rb index b447b18809..3aa06406cf 100644 --- a/lib/arel/algebra/relations/operations/where.rb +++ b/lib/arel/algebra/relations/operations/where.rb @@ -4,7 +4,6 @@ module Arel def initialize(relation, *predicates) super(relation) - predicates = [yield(relation)] + predicates if block_given? @predicates = predicates.map { |p| p.bind(relation) } @wheres = nil end -- cgit v1.2.3