From d05d70f73ac624ffebb69c2e1e145ddb2934ae31 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 27 Jul 2010 18:05:19 -0700 Subject: PERF: NERD RAGE. never called with a block, so no need to test --- lib/arel/algebra/relations/operations/group.rb | 5 ++--- 1 file 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 -- cgit v1.2.3