method
group
v8.1.1 -
Show latest stable
- Class:
Arel::SelectManager
group(*columns)public
No documentation available.
# File activerecord/lib/arel/select_manager.rb, line 74
def group(*columns)
columns.each do |column|
# FIXME: backwards compat
case column
when Nodes::SqlLiteral
when String
column = Nodes::SqlLiteral.new(column)
when Symbol
column = Nodes::SqlLiteral.new(column.name)
end
@ctx.groups.push Nodes::Group.new column
end
self
end