diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:58:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:58:28 -0700 |
commit | c0cadc86e054f2c2eead3482d54cbc57e3828671 (patch) | |
tree | 49140e1d5908dadcecfbd7a6da073837104c200f /lib | |
parent | b4b510b2b15a964e804037c7a7fd9291feabdd45 (diff) | |
download | rails-c0cadc86e054f2c2eead3482d54cbc57e3828671.tar.gz rails-c0cadc86e054f2c2eead3482d54cbc57e3828671.tar.bz2 rails-c0cadc86e054f2c2eead3482d54cbc57e3828671.zip |
never called with a block, so no reason to test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/algebra/relations/operations/where.rb | 1 |
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 |