blob: 6471469d9fb8ade306b06f8bb0c52e953c0fd8bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|