aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-27 17:58:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-27 17:58:28 -0700
commitc0cadc86e054f2c2eead3482d54cbc57e3828671 (patch)
tree49140e1d5908dadcecfbd7a6da073837104c200f
parentb4b510b2b15a964e804037c7a7fd9291feabdd45 (diff)
downloadrails-c0cadc86e054f2c2eead3482d54cbc57e3828671.tar.gz
rails-c0cadc86e054f2c2eead3482d54cbc57e3828671.tar.bz2
rails-c0cadc86e054f2c2eead3482d54cbc57e3828671.zip
never called with a block, so no reason to test
-rw-r--r--lib/arel/algebra/relations/operations/where.rb1
1 files changed, 0 insertions, 1 deletions
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