diff options
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 |