diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 18:05:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 18:05:19 -0700 |
commit | d05d70f73ac624ffebb69c2e1e145ddb2934ae31 (patch) | |
tree | db06051de72ab7558a4e2901a3f5429879ac5df8 /lib/arel | |
parent | ade53fbc3cedbf3c8f4942b3aade1e86ea6dc8a3 (diff) | |
download | rails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.tar.gz rails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.tar.bz2 rails-d05d70f73ac624ffebb69c2e1e145ddb2934ae31.zip |
PERF: NERD RAGE. never called with a block, so no need to test
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/algebra/relations/operations/group.rb | 5 |
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 |