blob: f3666cacf838bd9eee6cfd2f39fd562b5f560b11 (
plain) (
tree)
|
|
module Arel
class Group < Compound
attr_reader :groupings
def initialize(relation, groupings)
super(relation)
@groupings = groupings.collect { |g| g.bind(relation) }
end
def == other
super ||
self.class === other &&
@relation == other.relation &&
@groupings == other.groupings
end
def eval
raise NotImplementedError
end
end
end
|