aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/group.rb
blob: 16a2963c93444ad3a69af814775b386604c610ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Arel
  class Group < Compound
    attr_reader :groupings

    def initialize(relation, groupings)
      super(relation)
      @groupings = groupings.collect { |g| g.bind(relation) }
    end

    def eval
      raise NotImplementedError
    end
  end
end