diff options
-rw-r--r-- | lib/arel/algebra/relations/operations/having.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/operations/having.rb b/lib/arel/algebra/relations/operations/having.rb index fdd35626af..447e836c1a 100644 --- a/lib/arel/algebra/relations/operations/having.rb +++ b/lib/arel/algebra/relations/operations/having.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) } end |