diff options
-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 |