aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-27 18:05:19 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-27 18:05:19 -0700
commitd05d70f73ac624ffebb69c2e1e145ddb2934ae31 (patch)
treedb06051de72ab7558a4e2901a3f5429879ac5df8
parentade53fbc3cedbf3c8f4942b3aade1e86ea6dc8a3 (diff)
downloadrails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.tar.gz
rails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.tar.bz2
rails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.zip
PERF: NERD RAGE. never called with a block, so no need to test
-rw-r--r--lib/arel/algebra/relations/operations/group.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/arel/algebra/relations/operations/group.rb b/lib/arel/algebra/relations/operations/group.rb
index af0d3c6808..89e56b3a98 100644
--- a/lib/arel/algebra/relations/operations/group.rb
+++ b/lib/arel/algebra/relations/operations/group.rb
@@ -2,10 +2,9 @@ module Arel
class Group < Compound
attr_reader :groupings
- def initialize(relation, *groupings, &block)
+ def initialize(relation, *groupings)
super(relation)
- @groupings = (groupings + arguments_from_block(relation, &block)) \
- .collect { |g| g.bind(relation) }
+ @groupings = groupings.collect { |g| g.bind(relation) }
end
def == other