aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-27 18:06:38 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-27 18:06:38 -0700
commit7a7f3a2d3b9223cbac79813ed9b61aa2f7d7ee8f (patch)
tree422cd34e97f52810b9d639537b464a21d8db23d9
parentd05d70f73ac624ffebb69c2e1e145ddb2934ae31 (diff)
downloadrails-7a7f3a2d3b9223cbac79813ed9b61aa2f7d7ee8f.tar.gz
rails-7a7f3a2d3b9223cbac79813ed9b61aa2f7d7ee8f.tar.bz2
rails-7a7f3a2d3b9223cbac79813ed9b61aa2f7d7ee8f.zip
PERF: dead code is dead
-rw-r--r--lib/arel/algebra/relations/operations/having.rb1
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