mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
13 lines
245 B
Ruby
13 lines
245 B
Ruby
module Arel
|
|
module Nodes
|
|
class SqlLiteral < String
|
|
def count distinct = false
|
|
Count.new [self], distinct
|
|
end
|
|
|
|
def maximum
|
|
Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
|
|
end
|
|
end
|
|
end
|
|
end
|